Skip to content

Commit

Permalink
Merge pull request #249 from dmitrylyzo/gha-sync-wiki
Browse files Browse the repository at this point in the history
Add Wiki sync workflow trigger
  • Loading branch information
dmitrylyzo authored May 5, 2024
2 parents 545d36f + c51cc83 commit 882fb7f
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions .github/workflows/trigger-wiki-sync.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
name: Sync Wiki

on:
push:
branches:
- wiki/master

jobs:
trigger-wiki-sync:
name: Trigger Wiki sync in the main repo
runs-on: ubuntu-latest
steps:
- name: Trigger Wiki sync in the main repo
run: |
curl \
-X POST \
-H "Accept: application/vnd.github.v3+json" \
-H "Authorization: Bearer ${{ secrets.GITHUB_TOKEN }}" \
https://api.github.com/repos/${{ github.repository }}/actions/workflows/wiki-sync.yml/dispatches \
-d '{"ref":"refs/heads/master"}'

0 comments on commit 882fb7f

Please sign in to comment.