Update dist-1.yml

This commit is contained in:
jstan-isch 2023-01-25 11:43:55 -06:00 committed by GitHub
parent 6037f7db6a
commit b55f8f3d17
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -10,8 +10,17 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Repository Dispatch
uses: peter-evans/repository-dispatch@v1
with:
token: ${{ secrets.MY_PAT }}
event-type: my-event
client-payload: '{"ref": "${{ github.ref }}", "sha": "${{ github.sha }}", "test": "test message"}'
run: |
curl \
-H "Authorization: token :token" \
-H "Accept: application/vnd.github+json" \
"https://api.github.com/repos/:user/:repo/dispatches" \
-d '{
"event_type": "awesomeness",
"client_payload": {"ref": "${{ github.ref }}", "sha": "${{ github.sha }}", "test": "test message"}}'
# uses: peter-evans/repository-dispatch@v1
# with:
# token: ${{ secrets.MY_PAT }}
# event-type: my-event
# client-payload: '{"ref": "${{ github.ref }}", "sha": "${{ github.sha }}", "test": "test message"}'