Skip to content

Commit d924fd7

Browse files
committed
using repository-dispatch in docs workflow
1 parent 06ba3f7 commit d924fd7

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

.github/workflows/documentation.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -38,9 +38,9 @@ jobs:
3838
tag: ${{ github.ref }}
3939

4040
- name: Trigger workflow in tibiadata-api-docs repo
41-
run: |
42-
curl -X POST \
43-
-H "Authorization: token ${{ secrets.GITHUB_TOKEN }}" \
44-
-H "Accept: application/vnd.github.v3+json" \
45-
-d '{"ref":"main"}' \
46-
https://api.github.com/repos/TibiaData/tibiadata-api-docs/actions/workflows/update.yml/dispatches
41+
uses: peter-evans/repository-dispatch@v2
42+
with:
43+
token: ${{ secrets.REPO_ACCESS_TOKEN }}
44+
repository: TibiaData/tibiadata-api-docs
45+
event-type: tibiadata-api-go-release
46+
client-payload: '{"ref": "${{ github.ref }}", "sha": "${{ github.sha }}"}'

0 commit comments

Comments
 (0)