-
Notifications
You must be signed in to change notification settings - Fork 26
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
Add mirror GitHub workflow #1734
Conversation
Sync changes made on GitHub back to the mySociety git repo.
Testing the GH workflow
So every push is running CI and robocop workflows twice, once their own, and then again in order to decide whether to mirror. Given the mirror action is running the other two, can you stop their independent runs? |
I don't believe that is the case. Unless I'm missing something, if you look at the Action tab in the Github UI, then it appears to be running only once. |
To take the PR I just opened:
You can see they take different times, it's not like one is using the other one. The checks box on the #1747 shows 5 things being run. If you remove pull_request from robocop.yml and and push/pull_request from ci.yml, then the mirror runs will still run, I assume. |
Ah right I see now. I'll get that the workflows updated. Thanks for flagging. |
If you want a workflow to depend upon another workflow, there is the https://docs.github.com/en/actions/using-workflows/events-that-trigger-workflows#workflow_run event, but that can only depend upon any of 1 or more workflows completing, not all of a group of workflows, for which I think you'd need to either combine them into separate jobs in one workflow, or only rely on the ones being pulled in. |
Sync changes made on GitHub back to the mySociety git repo.