Skip to content

Commit

Permalink
Use PRISMA_BOT_TOKEN everywhere
Browse files Browse the repository at this point in the history
  • Loading branch information
SevInf committed Jun 17, 2024
1 parent 3e2964a commit 3850ce2
Show file tree
Hide file tree
Showing 10 changed files with 15 additions and 15 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/1_2_b_bump_extension_only.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/1_2_c_promote_patch_to_stable.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/1_check_for_updates.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/2_bump_versions.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/3_LS_tests_publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/4_bump_LS_in_extension.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/5_e2e_tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/6_build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/7_publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
Expand Down Expand Up @@ -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 }}
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/e2e_check_for_new_published_vsix.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down

0 comments on commit 3850ce2

Please sign in to comment.