devops: use REPOSITORY_DISPATCH_PERSONAL_ACCESS_TOKEN everywhere (#16426)
This commit is contained in:
parent
3e67a7c836
commit
232dee8fc6
|
|
@ -15,7 +15,7 @@ jobs:
|
||||||
- name: Create GitHub issue
|
- name: Create GitHub issue
|
||||||
uses: actions/github-script@v4
|
uses: actions/github-script@v4
|
||||||
with:
|
with:
|
||||||
github-token: ${{ secrets.GH_SERVICE_ACCOUNT_TOKEN }}
|
github-token: ${{ secrets.REPOSITORY_DISPATCH_PERSONAL_ACCESS_TOKEN }}
|
||||||
script: |
|
script: |
|
||||||
const { data } = await github.git.getCommit({
|
const { data } = await github.git.getCommit({
|
||||||
owner: context.repo.owner,
|
owner: context.repo.owner,
|
||||||
|
|
|
||||||
4
.github/workflows/publish_canary.yml
vendored
4
.github/workflows/publish_canary.yml
vendored
|
|
@ -78,9 +78,9 @@ jobs:
|
||||||
run: bash utils/build/deploy-trace-viewer.sh --canary
|
run: bash utils/build/deploy-trace-viewer.sh --canary
|
||||||
if: contains(github.ref, 'main')
|
if: contains(github.ref, 'main')
|
||||||
env:
|
env:
|
||||||
GH_SERVICE_ACCOUNT_TOKEN: ${{ secrets.GH_SERVICE_ACCOUNT_TOKEN }}
|
GH_SERVICE_ACCOUNT_TOKEN: ${{ secrets.REPOSITORY_DISPATCH_PERSONAL_ACCESS_TOKEN }}
|
||||||
- name: Deploy BETA
|
- name: Deploy BETA
|
||||||
run: bash utils/build/deploy-trace-viewer.sh --beta
|
run: bash utils/build/deploy-trace-viewer.sh --beta
|
||||||
if: contains(github.ref, 'release')
|
if: contains(github.ref, 'release')
|
||||||
env:
|
env:
|
||||||
GH_SERVICE_ACCOUNT_TOKEN: ${{ secrets.GH_SERVICE_ACCOUNT_TOKEN }}
|
GH_SERVICE_ACCOUNT_TOKEN: ${{ secrets.REPOSITORY_DISPATCH_PERSONAL_ACCESS_TOKEN }}
|
||||||
|
|
|
||||||
|
|
@ -18,4 +18,4 @@ jobs:
|
||||||
- name: Deploy Stable
|
- name: Deploy Stable
|
||||||
run: bash utils/build/deploy-trace-viewer.sh --stable
|
run: bash utils/build/deploy-trace-viewer.sh --stable
|
||||||
env:
|
env:
|
||||||
GH_SERVICE_ACCOUNT_TOKEN: ${{ secrets.GH_SERVICE_ACCOUNT_TOKEN }}
|
GH_SERVICE_ACCOUNT_TOKEN: ${{ secrets.REPOSITORY_DISPATCH_PERSONAL_ACCESS_TOKEN }}
|
||||||
|
|
|
||||||
|
|
@ -36,7 +36,7 @@ jobs:
|
||||||
- name: Create Pull Request
|
- name: Create Pull Request
|
||||||
uses: actions/github-script@v4
|
uses: actions/github-script@v4
|
||||||
with:
|
with:
|
||||||
github-token: ${{ secrets.GH_SERVICE_ACCOUNT_TOKEN }}
|
github-token: ${{ secrets.REPOSITORY_DISPATCH_PERSONAL_ACCESS_TOKEN }}
|
||||||
script: |
|
script: |
|
||||||
const response = await github.pulls.create({
|
const response = await github.pulls.create({
|
||||||
owner: 'microsoft',
|
owner: 'microsoft',
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue