From 0d5acda72d6cee69021cf766bc187593ebd6fd34 Mon Sep 17 00:00:00 2001 From: Ben Steer Date: Thu, 12 Oct 2023 13:47:17 +0100 Subject: [PATCH] Internal dispatcher (#1328) --- .github/workflows/internal_dispatch.yml | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 .github/workflows/internal_dispatch.yml diff --git a/.github/workflows/internal_dispatch.yml b/.github/workflows/internal_dispatch.yml new file mode 100644 index 0000000000..e1bf214545 --- /dev/null +++ b/.github/workflows/internal_dispatch.yml @@ -0,0 +1,24 @@ +name: Inform internal projects of raphtory push +on: + pull_request: + branches: + - master + push: + branches: + - master + +jobs: + release: + runs-on: ubuntu-latest + steps: + - uses: actions/github-script@v6 + with: + github-token: ${{ secrets.DISPATCH_PAT }} + script: | + const result = await github.rest.repos.createDispatchEvent({ + owner: 'pometry', + repo: '${{ secrets.PROJECT_ONE }}', + event_type: 'raphtory-update', + client_payload: {"update": "master"} + }) + console.log(result); \ No newline at end of file