File tree Expand file tree Collapse file tree 1 file changed +8
-2
lines changed
Expand file tree Collapse file tree 1 file changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -14,10 +14,16 @@ jobs:
1414 permissions : write-all
1515 runs-on : windows-latest
1616 steps :
17- - name : Trigger GitHub API to update binaries
17+ - name : Set Up Token
1818 env :
1919 GH_TOKEN : ${{ github.token }}
2020 # https://stackoverflow.com/questions/73778209/github-actions-best-way-to-reuse-secrets-for-multiple-repositories#77725350
21+ # https://cli.github.com/manual/gh_secret_set
22+ run : |
23+ gh secret set MYSECRET --user MahBoiDeveloper --repos TwistedInsurrectionUpdatedClient
24+ - name : Trigger GitHub API to update binaries
25+ env :
26+ GH_TOKEN : ${{ github.MYSECRET }}
27+
2128 run : |
22- gh secret set name --org organization --visibility all
2329 gh api --method POST -H "Accept: application/vnd.github+json" -H "X-GitHub-Api-Version: 2022-11-28" /repos/${{ env.OWNER_NAME }}/${{ env.REPO_NAME }}/actions/workflows/${{ env.WORKFLOW_FILE }}/dispatches -f 'ref=${{ env.TARGET_BRANCH }}'
You can’t perform that action at this time.
0 commit comments