diff --git a/.github/workflows/1_2_b_bump_extension_only.yml b/.github/workflows/1_2_b_bump_extension_only.yml index fc35eab75d..ed5fb09744 100644 --- a/.github/workflows/1_2_b_bump_extension_only.yml +++ b/.github/workflows/1_2_b_bump_extension_only.yml @@ -62,14 +62,14 @@ jobs: uses: benc-uk/workflow-dispatch@v1 with: workflow: 3. Test Language Server and publish - token: ${{ secrets.GH_TOKEN }} + token: ${{ secrets.PRISMA_BOT_TOKEN }} inputs: '{ "npm_channel": "dev", "extension_version": "${{ steps.update.outputs.next_extension_version }}", "branch": "main", "trigger_reason": "Commit from ${{ github.ref_name }}" }' - name: Trigger next workflow for Language Server tests if: endsWith(github.ref, '/main') == false uses: benc-uk/workflow-dispatch@v1 with: workflow: 3. Test Language Server and publish - token: ${{ secrets.GH_TOKEN }} + token: ${{ secrets.PRISMA_BOT_TOKEN }} inputs: '{ "npm_channel": "patch-dev", "extension_version": "${{ steps.update.outputs.next_extension_version }}", "branch": "${{ github.ref_name }}", "trigger_reason": "Commit from ${{ github.ref_name }}" }' - name: 'Set current job url in SLACK_FOOTER env var' diff --git a/.github/workflows/1_2_c_promote_patch_to_stable.yml b/.github/workflows/1_2_c_promote_patch_to_stable.yml index 080862296b..eca306944a 100644 --- a/.github/workflows/1_2_c_promote_patch_to_stable.yml +++ b/.github/workflows/1_2_c_promote_patch_to_stable.yml @@ -54,7 +54,7 @@ jobs: uses: benc-uk/workflow-dispatch@v1 with: workflow: 3. Test Language Server and publish - token: ${{ secrets.GH_TOKEN }} + token: ${{ secrets.PRISMA_BOT_TOKEN }} inputs: '{ "npm_channel": "latest", "extension_version": "${{ steps.update.outputs.next_extension_version }}", "branch": "stable", "trigger_reason": "Manual trigger promoting patch branch to stable" }' - name: 'Set current job url in SLACK_FOOTER env var' diff --git a/.github/workflows/1_check_for_updates.yml b/.github/workflows/1_check_for_updates.yml index 1659149299..eb402e33f2 100644 --- a/.github/workflows/1_check_for_updates.yml +++ b/.github/workflows/1_check_for_updates.yml @@ -37,21 +37,21 @@ jobs: uses: benc-uk/workflow-dispatch@v1 with: workflow: 2. Bump versions - token: ${{ secrets.GH_TOKEN }} + token: ${{ secrets.PRISMA_BOT_TOKEN }} inputs: '{ "npm_channel": "dev", "version": "${{ steps.check_update.outputs.dev_version }}" }' - name: Invoke bump workflow with inputs for latest if: ${{ steps.check_update.outputs.latest_version }} uses: benc-uk/workflow-dispatch@v1 with: workflow: 2. Bump versions - token: ${{ secrets.GH_TOKEN }} + token: ${{ secrets.PRISMA_BOT_TOKEN }} inputs: '{ "npm_channel": "latest", "version": "${{ steps.check_update.outputs.latest_version }}" }' - name: Invoke bump workflow with inputs for patch-dev if: ${{ steps.check_update.outputs.patch-dev_version }} uses: benc-uk/workflow-dispatch@v1 with: workflow: 2. Bump versions - token: ${{ secrets.GH_TOKEN }} + token: ${{ secrets.PRISMA_BOT_TOKEN }} inputs: '{ "npm_channel": "patch-dev", "version": "${{ steps.check_update.outputs.patch-dev_version }}" }' - name: 'Set current job url in SLACK_FOOTER env var' diff --git a/.github/workflows/2_bump_versions.yml b/.github/workflows/2_bump_versions.yml index b21f411d39..c87a91b785 100644 --- a/.github/workflows/2_bump_versions.yml +++ b/.github/workflows/2_bump_versions.yml @@ -74,7 +74,7 @@ jobs: uses: benc-uk/workflow-dispatch@v1 with: workflow: 3. Test Language Server and publish - token: ${{ secrets.GH_TOKEN }} + token: ${{ secrets.PRISMA_BOT_TOKEN }} inputs: '{ "npm_channel": "${{ github.event.inputs.npm_channel }}", "extension_version": "${{ steps.update.outputs.next_extension_version }}", "branch": "${{steps.setup_branch.outputs.branch}}", "trigger_reason": "Prisma CLI version ${{github.event.inputs.version}}" }' - name: 'Set current job url in SLACK_FOOTER env var' diff --git a/.github/workflows/3_LS_tests_publish.yml b/.github/workflows/3_LS_tests_publish.yml index 876f63533c..1a4ebcaa5a 100644 --- a/.github/workflows/3_LS_tests_publish.yml +++ b/.github/workflows/3_LS_tests_publish.yml @@ -81,7 +81,7 @@ jobs: uses: benc-uk/workflow-dispatch@v1 with: workflow: 4. Bump LS in VSCode extension - token: ${{ secrets.GH_TOKEN }} + token: ${{ secrets.PRISMA_BOT_TOKEN }} inputs: '{ "npm_channel": "${{ github.event.inputs.npm_channel }}", "extension_version": "${{ github.event.inputs.extension_version }}", "branch": "${{ github.event.inputs.branch }}", "trigger_reason": "${{github.event.inputs.trigger_reason}}" }' slack: diff --git a/.github/workflows/4_bump_LS_in_extension.yml b/.github/workflows/4_bump_LS_in_extension.yml index 1f6826a773..8dea6b9da4 100644 --- a/.github/workflows/4_bump_LS_in_extension.yml +++ b/.github/workflows/4_bump_LS_in_extension.yml @@ -68,7 +68,7 @@ jobs: uses: benc-uk/workflow-dispatch@v1 with: workflow: 5. Integration tests in VSCode folder with published LS - token: ${{ secrets.GH_TOKEN }} + token: ${{ secrets.PRISMA_BOT_TOKEN }} inputs: '{ "npm_channel": "${{ github.event.inputs.npm_channel }}", "extension_version": "${{ github.event.inputs.extension_version }}", "branch": "${{ github.event.inputs.branch }}", "trigger_reason": "${{github.event.inputs.trigger_reason}}" }' - name: 'Set current job url in SLACK_FOOTER env var' diff --git a/.github/workflows/5_e2e_tests.yml b/.github/workflows/5_e2e_tests.yml index 53f18edb3f..ecffdc2931 100644 --- a/.github/workflows/5_e2e_tests.yml +++ b/.github/workflows/5_e2e_tests.yml @@ -71,7 +71,7 @@ jobs: uses: benc-uk/workflow-dispatch@v1 with: workflow: 6. Build extension - token: ${{ secrets.GH_TOKEN }} + token: ${{ secrets.PRISMA_BOT_TOKEN }} inputs: '{ "npm_channel": "${{ github.event.inputs.npm_channel }}", "extension_version": "${{ github.event.inputs.extension_version }}", "branch": "${{github.event.inputs.branch}}", "trigger_reason": "${{github.event.inputs.trigger_reason}}" }' - name: 'Set current job url in SLACK_FOOTER env var' diff --git a/.github/workflows/6_build.yml b/.github/workflows/6_build.yml index 83f7daa770..639302f91f 100644 --- a/.github/workflows/6_build.yml +++ b/.github/workflows/6_build.yml @@ -94,7 +94,7 @@ jobs: uses: benc-uk/workflow-dispatch@v1 with: workflow: 7. Publish - token: ${{ secrets.GH_TOKEN }} + token: ${{ secrets.PRISMA_BOT_TOKEN }} inputs: '{ "asset_name": "${{ steps.get_asset_name.outputs.asset_name }}", "tag_name": "${{ steps.names.outputs.tag_name }}", "trigger_reason": "${{github.event.inputs.trigger_reason}}" }' slack: diff --git a/.github/workflows/7_publish.yml b/.github/workflows/7_publish.yml index e452893396..fe52873e8e 100644 --- a/.github/workflows/7_publish.yml +++ b/.github/workflows/7_publish.yml @@ -51,7 +51,7 @@ jobs: repo: 'prisma/language-tools' version: 'tags/${{ github.event.inputs.tag_name }}' file: ${{ github.event.inputs.asset_name }} - token: ${{ secrets.GH_TOKEN }} + token: ${{ secrets.PRISMA_BOT_TOKEN }} - name: publish vsix to marketplace run: cd packages/vscode && npx vsce publish --pat ${{ secrets.AZURE_DEVOPS_PERSONAL_ACCESS_TOKEN}} --packagePath ${{github.workspace}}/${{ github.event.inputs.asset_name }} @@ -105,7 +105,7 @@ jobs: repo: 'prisma/language-tools' version: 'tags/${{ github.event.inputs.tag_name }}' file: ${{ github.event.inputs.asset_name }} - token: ${{ secrets.GH_TOKEN }} + token: ${{ secrets.PRISMA_BOT_TOKEN }} - name: Publish vsix to open-vsx.org run: cd packages/vscode && npx ovsx publish ${{github.workspace}}/${{ github.event.inputs.asset_name }} --pat ${{ secrets.OPEN_VSX_ACCESS_TOKEN }} diff --git a/.github/workflows/e2e_check_for_new_published_vsix.yml b/.github/workflows/e2e_check_for_new_published_vsix.yml index 2bb0ebf452..b9d9931df7 100644 --- a/.github/workflows/e2e_check_for_new_published_vsix.yml +++ b/.github/workflows/e2e_check_for_new_published_vsix.yml @@ -33,14 +33,14 @@ jobs: uses: benc-uk/workflow-dispatch@v1 with: workflow: E2E tests after release on VSIX - token: ${{ secrets.GH_TOKEN }} + token: ${{ secrets.PRISMA_BOT_TOKEN }} inputs: '{ "extension_type": "insider", "extension_version": "${{ steps.check_published_version.outputs.new_insider_version }}" }' - name: Trigger e2e tests for stable if: ${{ steps.check_published_version.outputs.new_stable_version }} uses: benc-uk/workflow-dispatch@v1 with: workflow: E2E tests after release on VSIX - token: ${{ secrets.GH_TOKEN }} + token: ${{ secrets.PRISMA_BOT_TOKEN }} inputs: '{ "extension_type": "stable", "extension_version": "${{ steps.check_published_version.outputs.new_stable_version }}" }' - name: 'Set current job url in SLACK_FOOTER env var'