From 8a59de927dbb4f16111eea58a22465d193e28b2b Mon Sep 17 00:00:00 2001 From: Haaroon Y Date: Tue, 4 Jun 2024 14:03:16 +0100 Subject: [PATCH] disbale internal dispatch (#1634) --- .github/workflows/internal_dispatch.yml | 54 ++++++++++++------------- 1 file changed, 27 insertions(+), 27 deletions(-) diff --git a/.github/workflows/internal_dispatch.yml b/.github/workflows/internal_dispatch.yml index 61c05a48fb..42a3575867 100644 --- a/.github/workflows/internal_dispatch.yml +++ b/.github/workflows/internal_dispatch.yml @@ -1,27 +1,27 @@ -name: Inform internal projects of raphtory push -on: - 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"} - }); - - // Check the status code of the response - if (result.status !== 204) { // 204 No Content is a typical successful response for dispatch events - console.error('Failed to dispatch the event. Response:', result); - throw new Error('Dispatch event failed'); // Throwing an error will fail the job - } - console.log('Dispatch event was successful:', result); +#name: Inform internal projects of raphtory push +#on: +# 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"} +# }); +# +# // Check the status code of the response +# if (result.status !== 204) { // 204 No Content is a typical successful response for dispatch events +# console.error('Failed to dispatch the event. Response:', result); +# throw new Error('Dispatch event failed'); // Throwing an error will fail the job +# } +# console.log('Dispatch event was successful:', result);