Skip to content

Run action on repo creation from template #25748

Answered by Yanjingzhu
themoch asked this question in Actions
Discussion options

You must be logged in to vote

Hi @themoch , 

I would recommend you using create event.   

Add on: create to the workflow yml which could create package.json in your template repo . 

on:
  create:

After done this and clicking on “use the template”, a new repo will be created . And a workflow run on: create will be triggered. 

Please kindly let me know whether this could work for you . 

Replies: 7 comments

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
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
4 participants