Skip to content

Commit 67e300c

Browse files
Update GitHub Actions workflow to set secret
1 parent 538e166 commit 67e300c

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

.github/workflows/tmp.yml

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff 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 }}'

0 commit comments

Comments
 (0)