Skip to content

Triggering by other repository #26323

Triggering by other repository #26323
Sep 5, 2019 · 14 answers · 3 replies
Discussion options

You must be logged in to vote

Triggers are per-repository, _however _you could send a “repository dispatch” event to your Application repository.  This is a custom event type that has no explicit meaning within GitHub, that you can use for your own purposes.

So in the application’s workflow, you could listen for a repository dispatch event:

on: repository_dispatch

And then in the library’s workflow, you could send a repository dispatch event.  You’ll need to set up a personal access token as a secret in the library’s repository:

run: |
curl -XPOST -u "${{ secrets.PAT_USERNAME}}:${{secrets.PAT_TOKEN}}" -H "Accept: application/vnd.github.everest-preview+json" -H "Content-Type: application/json" https://api.github.com/r…

Replies: 14 suggested answers 3 replies

Comment options

You must be logged in to vote
0 replies
Answer selected
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@mahiki
Comment options

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@ndrewtl
Comment options

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@iosifache
Comment options

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment