Skip to content

Commit fc22246

Browse files
Modify GitHub Actions workflow for token handling
Comment out token setup and update secret reference
1 parent b5b57dd commit fc22246

File tree

1 file changed

+6
-7
lines changed

1 file changed

+6
-7
lines changed

.github/workflows/tmp.yml

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -14,16 +14,15 @@ jobs:
1414
permissions: write-all
1515
runs-on: windows-latest
1616
steps:
17-
- name: Set Up Token
18-
env:
19-
GH_TOKEN: ${{ github.token }}
17+
#- name: Set Up Token
18+
#env:
19+
#GH_TOKEN: ${{ github.token }}
2020
# https://stackoverflow.com/questions/73778209/github-actions-best-way-to-reuse-secrets-for-multiple-repositories#77725350
2121
# https://cli.github.com/manual/gh_secret_set
22-
run: |
23-
gh secret set MYSECRET --repo MahBoiDeveloper/TwistedInsurrectionUpdatedClient
22+
# run: |
23+
# gh secret set MYSECRET --repo MahBoiDeveloper/TwistedInsurrectionUpdatedClient
2424
- name: Trigger GitHub API to update binaries
2525
env:
26-
GH_TOKEN: ${{ secrets.MYSECRET }}
27-
26+
GH_TOKEN: ${{ secrets.TESTING }}
2827
run: |
2928
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)