diff --git a/.github/workflows/ci_testbuild.yml b/.github/workflows/ci_testbuild.yml index 16e5e40cd..58ca1e0c4 100644 --- a/.github/workflows/ci_testbuild.yml +++ b/.github/workflows/ci_testbuild.yml @@ -90,7 +90,7 @@ jobs: name: coverage.xml path: artifacts/coverage.xml - - name: Send notification (Push) + - name: Send notification (Push) if: ${{ always() && github.event_name == 'push' && github.repository == 'hammerspoon/hammerspoon' }} run: | /usr/bin/curl -H "X-CI-WebHook: true" -H "Content-Type: application/json" -d '{"secret": "${{ secrets.CI_WEBHOOK_SECRET }}", "repository": "hammerspoon", "workflow": "CI (Push)", "message": "CI for ${{ github.event.compare }} (${{ github.event.head_commit.author.name }}):\n * ${{ toJSON(github.event.head_commit.message)}}\n * ${{ steps.test.outputs.test_result }}"}' "${{ secrets.CI_WEBHOOK_URL }}"