Skip to content

Commit

Permalink
fix: workflow permissions
Browse files Browse the repository at this point in the history
  • Loading branch information
FabulousCodingFox committed Jan 11, 2025
1 parent 5ce82d4 commit cdde941
Showing 1 changed file with 6 additions and 10 deletions.
16 changes: 6 additions & 10 deletions .github/workflows/trigger_deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,16 +8,12 @@ on:
jobs:
trigger_target:
runs-on: ubuntu-latest
permissions:
contents: write
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
steps:
- name: Send repository_dispatch to Target Repositories
run: |
curl -X POST \
-H "Authorization: Bearer ${{ secrets.GITHUB_TOKEN }}" \
-H "Accept: application/vnd.github.v3+json" \
https://api.github.com/repos/learndaxa/Tutorial/dispatches \
-d '{"event_type":"starlight_wiki_build"}'
curl -X POST \
-H "Authorization: Bearer ${{ secrets.GITHUB_TOKEN }}" \
-H "Accept: application/vnd.github.v3+json" \
https://api.github.com/repos/learndaxa/Wiki/dispatches \
-d '{"event_type":"starlight_wiki_build"}'
curl -d "{\"event_type\": \"starlight_wiki_build\"}" -H "Content-Type: application/json" -H "Authorization: token ${GITHUB_TOKEN}" -H "Accept: application/vnd.github.everest-preview+json" "https://api.github.com/repos/learndaxa/Tutorial/dispatches"
curl -d "{\"event_type\": \"starlight_wiki_build\"}" -H "Content-Type: application/json" -H "Authorization: token ${GITHUB_TOKEN}" -H "Accept: application/vnd.github.everest-preview+json" "https://api.github.com/repos/learndaxa/Wiki/dispatches"

0 comments on commit cdde941

Please sign in to comment.