Skip to content

Triggering by other repository #26323

Answered by ethomson
daid asked this question in Actions
Sep 5, 2019 · 23 comments · 24 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: 23 comments 24 replies

Comment options

You must be logged in to vote
2 replies
@couling
Comment options

@alelom
Comment options

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
5 replies
@ndrewtl
Comment options

@iglesiasroberto14
Comment options

@rmoff
Comment options

@DerekChia
Comment options

@lizozom
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
3 replies
@iosifache
Comment options

@phun-ky
Comment options

@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
1 reply
@marcchehab
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
3 replies
@suryastef
Comment options

@brianjmurrell
Comment options

@michaelweinold
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
5 replies
@michaelweinold
Comment options

@jmiller-rise8
Comment options

@ricekot
Comment options

@patrick-5546
Comment options

@BrianOpteran
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
@OnkarRuikar
Comment options

Comment options

You must be logged in to vote
3 replies
@ARolek
Comment options

@ARolek
Comment options

@karthickradhakrishnan
Comment options

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
Labels
None yet