Skip to content

Commit

Permalink
Update nitwikit-sync.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
tuanzisama authored Dec 24, 2024
1 parent af7dc82 commit 233b3a3
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions .github/workflows/nitwikit-sync.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ jobs:
run: |
git add .
git config --local user.email "[email protected]"
git config --local user.name "GitHub Action"
git config --local user.name "GitHub Actions"
git commit -m "Update Nitwikit from upstream by $event_name."
if: ${{ steps.status.outputs.status }}

Expand All @@ -43,10 +43,9 @@ jobs:
if: ${{ steps.status.outputs.status }}

- name: trigger deploy workflow
run: |
echo "https://api.github.com/repos/${GITHUB_REPOSITORY}/actions/workflows/wiki-deploy.yml/dispatches"
curl \
run: curl \
-X POST \
https://api.github.com/repos/${GITHUB_REPOSITORY}/actions/workflows/wiki-deploy.yml/dispatches \
-u ${{ secrets.PAT_TOKEN }} \
-d '{"ref":"${{github.ref_name}}"}'
if: ${{ steps.status.outputs.status }}

0 comments on commit 233b3a3

Please sign in to comment.