-
-
Notifications
You must be signed in to change notification settings - Fork 73
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Allow Github Actions to be run on non-master branch #65
base: master
Are you sure you want to change the base?
Conversation
This should not be necessary -- when you create a pull request, the 'on: pull_request' trigger performs the build. What will happen if I merge this, any PR created from a branch in this repository will have all the jobs doubled: once for the pull_request trigger, and once for the branch trigger. I don't want that. |
Hi.
Right, but it would not run workflow on a forked repo until I make a pull request. More than that, it will not be run until an author of the original repo will open this PR and approve a workflow execution. Because of that limiting a workflow run with a specific branch is not a best option. For example, I've created a pull request #64 and I has been waited for 2 weeks for the workflow to be approved by you just to ensure that my changes are correct. And only after workflow has been executed I discovered that one of steps failed.
Regarding the issue of executing a workflow twice when a PR is created within the same repo, there are other ways to prevent that. It prevents workflow from being run if there is another copy of workflow which has been triggered by the same commit. |
Ooh, the skipping of the duplicate action thing sounds interesting. I don't currently have the energy to investigate it (or review the long-standing open PRs, sorry about that, I'm trying!). Would you mind amending this PR so I can see what the result looks like? |
Hm, actually, to really see what it would look like, I think I have to add you as a collaborator to this repo, so you can create branches in it. Otherwise there's no duplicates to hide, right? |
08d6e04
to
4aa3d54
Compare
91485a1
to
f40a95c
Compare
Sorry for late response.
Of course not. I've amended this PR several times.
Actually, I can show you how it works on a forked repo. For example, I've pushed a commit and then amended (without adding any changes) it and pushed again. Also I've created a new branch and PR. |
Hi.
I've added a small fix to your Github Actions workflow definition - now it will be executed while pushing commit to any branch instead of just master.
This allows users like me create multiple pull requests from different branches of their fork repos to the master branch of your repo, and still be able to see if something is wrong with the source code.