diff --git a/.github/workflows/nitwikit-sync.yml b/.github/workflows/nitwikit-sync.yml index 81c40b61..5bc4302b 100644 --- a/.github/workflows/nitwikit-sync.yml +++ b/.github/workflows/nitwikit-sync.yml @@ -31,7 +31,7 @@ jobs: run: | git add . git config --local user.email "action@github.com" - 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 }} @@ -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 }}