From 50877810c4e03263c7146d49479031dfd8907bc3 Mon Sep 17 00:00:00 2001 From: Dmitry Maklygin Date: Thu, 27 Jul 2023 10:29:48 +0300 Subject: [PATCH] chore: [FX-4058] update jira deployments GH Action (#3718) * chore: test jira deployments * chore: set up env variables * chore: fix token * chore: fix token * chore: test jira deployment * chore: tbs * chore: remove unneccesary Gh Workflow * chore: update other GH Workflows * chore: use proper version * chore: update * chore: tbs * chore: update environments for jira deployment --- .github/workflows/ci.yaml | 7 +++++-- .github/workflows/davinci-alpha-package.yml | 8 ++++++-- .github/workflows/release.yml | 6 +++++- package.json | 6 +++--- 4 files changed, 19 insertions(+), 8 deletions(-) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 560e6a58c1..962702cffb 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -23,6 +23,9 @@ env: HTTP_PROXY: http://${{ secrets.HTTP_PROXY }} HAPPO_API_KEY: ${{ secrets.HAPPO_API_KEY }} HAPPO_API_SECRET: ${{ secrets.HAPPO_API_SECRET }} + JENKINS_USER: ${{ secrets.TOPTAL_TRIGGERBOT_USERNAME }} + JENKINS_BUILD_TOKEN: ${{ secrets.TOPTAL_TRIGGERBOT_BUILD_TOKEN }} + PROXY: http://${{ secrets.HTTP_PROXY }} jobs: build-docker-image: @@ -157,11 +160,11 @@ jobs: job_timeout: '3600' - name: Create Jira Deployment - uses: toptal/davinci-github-actions/create-jira-deployment@v8.0.0 + uses: toptal/davinci-github-actions/create-jira-deployment@v9.0.0 if: ${{ always() }} with: token: ${{ env.TOPTAL_DEVBOT_TOKEN }} - environment: temploy + environment: staging environment-url: ${{ steps.temploy.outputs.temployURL }} transient-environment: false auto-inactive: false diff --git a/.github/workflows/davinci-alpha-package.yml b/.github/workflows/davinci-alpha-package.yml index 891f3107e5..73cc78d976 100644 --- a/.github/workflows/davinci-alpha-package.yml +++ b/.github/workflows/davinci-alpha-package.yml @@ -104,9 +104,13 @@ jobs: target_url: process.env.STATUS_TARGET_URL }) - - uses: toptal/davinci-github-actions/create-jira-deployment@v8.0.0 + - uses: toptal/davinci-github-actions/create-jira-deployment@v9.0.0 name: Create Jira deployment + env: + JENKINS_USER: ${{ secrets.TOPTAL_TRIGGERBOT_USERNAME }} + JENKINS_BUILD_TOKEN: ${{ secrets.TOPTAL_TRIGGERBOT_BUILD_TOKEN }} + PROXY: http://${{ secrets.HTTP_PROXY }} with: token: ${{ env.GITHUB_TOKEN }} - environment: alpha-package + environment: development environment-url: https://www.npmjs.com/package/@toptal/picasso?activeTab=versions diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 5e1fee49ad..52c8d193ea 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -172,9 +172,13 @@ jobs: env: SLACK_BOT_TOKEN: ${{ env.SLACK_BOT_TOKEN }} - - uses: toptal/davinci-github-actions/create-jira-deployment@v8.0.0 + - uses: toptal/davinci-github-actions/create-jira-deployment@v9.0.0 name: Create Jira deployment if: ${{ steps.changesets.outputs.published == 'true' }} + env: + JENKINS_USER: ${{ secrets.TOPTAL_TRIGGERBOT_USERNAME }} + JENKINS_BUILD_TOKEN: ${{ secrets.TOPTAL_TRIGGERBOT_BUILD_TOKEN }} + PROXY: http://${{ secrets.HTTP_PROXY }} with: token: ${{ env.DEVBOT_TOKEN }} environment: production diff --git a/package.json b/package.json index 9d833456f0..55632a3792 100644 --- a/package.json +++ b/package.json @@ -51,6 +51,8 @@ }, "homepage": "https://github.com/toptal/picasso#readme", "devDependencies": { + "@actions/core": "^1.10.0", + "@actions/github": "^5.1.1", "@babel/core": "^7.20.12", "@babel/preset-env": "^7.21.5", "@babel/preset-react": "^7.22.3", @@ -122,9 +124,7 @@ "typescript": "~4.7.0", "url-loader": "^4.1.1", "yargs": "^17.5.1", - "yarn-deduplicate": "^3.1.0", - "@actions/core": "^1.10.0", - "@actions/github": "^5.1.1" + "yarn-deduplicate": "^3.1.0" }, "lint-staged": { "{**/*.{js,jsx,ts,tsx},.changeset/*.md}": [