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"'" }}'