From 45e609aa3fd8437328b46ff46f8d690925a6fd9a Mon Sep 17 00:00:00 2001 From: Adrien Coulier Date: Wed, 1 Apr 2026 15:46:20 +0200 Subject: [PATCH] Push commit notifications --- .github/workflows/on_commit.yml | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 .github/workflows/on_commit.yml 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 }}