diff --git a/.github/workflows/on_commit.yml b/.github/workflows/on_commit.yml new file mode 100644 index 0000000..17cec15 --- /dev/null +++ b/.github/workflows/on_commit.yml @@ -0,0 +1,17 @@ +name: on_commit +on: + push: + branches: [dev] + +jobs: + dispatch: + name: Notify update event + runs-on: ubuntu-latest + timeout-minutes: 5 + steps: + - name: Post commit hash + run: | + curl -H "Accept: application/vnd.github.everest-preview+json" \ + -H "Authorization: token ${{ secrets.DISPATCH_TOKEN }}" \ + --request POST \ + --data '{"event_type": "new-pixelator-core-commit", "client_payload": { "commit_hash": "${{ github.sha }}" }}' ${{ secrets.SEND_COMMIT_URL }}