Skip to content

Commit

Permalink
use action
Browse files Browse the repository at this point in the history
  • Loading branch information
dtamayo committed Oct 27, 2023
1 parent 1490725 commit e504057
Showing 1 changed file with 13 additions and 8 deletions.
21 changes: 13 additions & 8 deletions .github/workflows/trigger_rebx.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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"'" }}'

0 comments on commit e504057

Please sign in to comment.