From bd0a440d5d4271380e97ba92ae642aa097ef03e6 Mon Sep 17 00:00:00 2001 From: Damilola Odujoko Date: Tue, 9 Jun 2026 11:04:24 +0100 Subject: [PATCH] feat: add workflow to notify build system of change --- .github/workflows/notify-build-system.yml | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 .github/workflows/notify-build-system.yml diff --git a/.github/workflows/notify-build-system.yml b/.github/workflows/notify-build-system.yml new file mode 100644 index 00000000..c5111b9f --- /dev/null +++ b/.github/workflows/notify-build-system.yml @@ -0,0 +1,23 @@ +name: Notify Build System + +on: + push: + branches: [main] + paths: + - "dist/paystack.yaml" + +jobs: + dispatch: + name: Dispatch spec update + runs-on: ubuntu-latest + permissions: + contents: read + steps: + - name: Dispatch to Build System + uses: peter-evans/repository-dispatch@v3 + with: + token: ${{ secrets.DISPATCH_TOKEN }} + repository: ${{ secrets.BUILD_SYSTEM }} + event-type: openapi-spec-updated + client-payload: >- + {"ref":"${{ github.ref }}","sha":"${{ github.sha }}","repository":"${{ github.repository }}"}