Skip to content

Commit

Permalink
Update trigger-docs.yml
Browse files Browse the repository at this point in the history
Test out workflow_dispatch
  • Loading branch information
bgk- authored Apr 9, 2024
1 parent 439c562 commit df1ca24
Showing 1 changed file with 10 additions and 6 deletions.
16 changes: 10 additions & 6 deletions .github/workflows/trigger-docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,14 @@ jobs:
runs-on: ubuntu-latest

steps:
- name: Repository Dispatch
uses: peter-evans/repository-dispatch@v1
- name: Trigger Docs
- uses: actions/github-script@v6
with:
token: ${{ secrets.PAT }}
repository: peartreegames/website
event-type: doc-update
client-payload: '{"ref": "${{ github.ref }}"}'
github-token: ${{ secrets.PAT }}
script: |
await github.rest.actions.createWorkflowDispatch({
owner: 'peartreegames',
repo: 'webite',
workflow_id: 'main.yml',
ref: 'main'
})

0 comments on commit df1ca24

Please sign in to comment.