Closed TheTripleV closed 4 years ago
No. On the other end, I've been using a POST
curl -X POST https://api.github.com/repos/robotpy/pyfrc/dispatches \
-H 'Accept: application/vnd.github.everest-preview+json' \
-u TheTripleV:${{ secrets.PYFRC_ACCESS_TOKEN }} \
--data '{"event_type": "tag", "client_payload": { "repository": "'"$GITHUB_REPOSITORY"'", "package_name": "wpilib"}}'
but i guess that would work too. I'll try it out. That shouldn't affect this side of the script though.
repository-dispatch isn't working for me: My yaml
- name: Ping pyfrc
uses: peter-evans/repository-dispatch@v1
with:
token: ${{ secrets.PYFRC_ACCESS_TOKEN }}
repository: TheTripleV/pyfrc
event-type: tag
client-payload: '{"repository": "'"$GITHUB_REPOSITORY"'", "package_name": "wpilib"}}'
Github Actions is throwing a yaml syntax error on the event-type
line.
Yes, now it does use https://github.com/marketplace/actions/repository-dispatch on the sending side.
Hm, can't the sending repo send this the tag? Then it doesn't need to check the repo out.
Thanks!
I've added a REPO_ACCESS_TOKEN secret to the relevant repos.
Functionality:
When this repo receives a webhook with a package name and repo name:
requirements.txt
Notes:
secrets.GITHUB_TOKEN
. A push made using GITHUB_TOKEN will not trigger other actions whereas using another private access token will.