diff --git a/.github/workflows/trigger_deploy.yml b/.github/workflows/trigger_deploy.yml index c8657a8..8856b31 100644 --- a/.github/workflows/trigger_deploy.yml +++ b/.github/workflows/trigger_deploy.yml @@ -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"