-
Hello there, I have a project under the form of a template that is supposed to trigger a GitHub Actions workflow when the user click on “use this template” This is the Workflow in question. It use to work great but now, more often than not when a user click on “use this template” the workflow Thank you for your help and for the otherwise amassing services. Best regards |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments
-
I can reproduce the same problem. According to my tests, if the workflow runs on the create event is never triggered on the template repository, when creating a new repository with the template repository, the workflow will not be triggered on the new repository. However, after I triggered the workflow at least once on the template repository, the problem no longer occurs. When I tried again to create a new repository with the template repository, the workflow can be triggered as expected on the new template repository. |
Beta Was this translation helpful? Give feedback.
-
Could this be somehow related to the changed default branch name (master > main)? |
Beta Was this translation helpful? Give feedback.
-
@brightran THANK YOU, THANK YOU, THANK YOU. @Simran-B Thank you for your answer as well. I had migrated to using |
Beta Was this translation helpful? Give feedback.
-
Well after many tries and many errors I finally gave up on using on create but I found a workaround. More details:
Well in the end, after hours of tries and error I got to the conclusion that for a workflow to run after a template creation it must have ran successfully on the last commit made on the source repo. So I can’t use on create but I have fond a workaround. |
Beta Was this translation helpful? Give feedback.
Well after many tries and many errors I finally gave up on using on create but I found a workaround.
More details: