From e504057f486f2de6629882f784b3bd37788665b5 Mon Sep 17 00:00:00 2001 From: Daniel Tamayo Date: Fri, 27 Oct 2023 11:25:17 -0700 Subject: [PATCH] use action --- .github/workflows/trigger_rebx.yml | 21 +++++++++++++-------- 1 file changed, 13 insertions(+), 8 deletions(-) diff --git a/.github/workflows/trigger_rebx.yml b/.github/workflows/trigger_rebx.yml index c6ce28d6c..262c53746 100644 --- a/.github/workflows/trigger_rebx.yml +++ b/.github/workflows/trigger_rebx.yml @@ -7,11 +7,16 @@ jobs: runs-on: ubuntu-latest steps: - # Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it - - name: Test - run: | - echo $GITHUB_SHA - curl -L -X POST https://api.github.com/repos/dtamayo/reboundx/dispatches \ - -H 'Accept: application/vnd.github+json' \ - -H 'Authorization: Bearer ${{ secrets.REBX_TRIGGER_TOKEN }}' \ - -d '{"event_type": "trigger_rebx", "client_payload": {"ref": "'"$GITHUB_SHA"'" }}' + - name: Trigger REBOUNDx CI + uses: peter-evans/repository-dispatch@v2 + with: + token: ${{ secrets.REBX_TRIGGER_TOKEN }} + repository: dtamayo/reboundx + event_type: trigger_rebx + client_payload: '{"ref": "'"$GITHUB_SHA"'"}' + #run: | + #echo $GITHUB_SHA + #curl -L -X POST https://api.github.com/repos/dtamayo/reboundx/dispatches \ + #-H 'Accept: application/vnd.github+json' \ + #-H 'Authorization: Bearer ${{ secrets.REBX_TRIGGER_TOKEN }}' \ + #-d '{"event_type": "trigger_rebx", "client_payload": {"ref": "'"$GITHUB_SHA"'" }}'