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
Ability to re-run/trigger a GitHub Actions Workflow #3113
Comments
This is impossible, you can’t run random workflows like that, they have to be pre-setup with those specific listeners. The only thing possible would be if you’re referring to running OUR ci, not as a feature of refined GitHub. Adding empty commits isn’t great either way. |
I'm assuming by me saying "creating a new workflow run" you are thinking of creating new workflow file, with a custom event, jobs and stuff. Yes, that's impossible. What I'm referring to is a way to trigger a workflow is already configured by the user in the repo, let's say like "Deployment" which they would want to trigger on a specific branch. Feels like I'm explaining Travis' "Trigger Build" feature, but for a specific workflow that the user already has in their repo. I understand that this might not be possible, but was just brainstorming that idea as it is similar to my actual feature request being able to re-run an already run workflow (example), using the API GitHub provides.
I'm referring to the feature that is actually possible using GH API be added as a feature of RGH. |
Indeed that’s not possible. A workflow only runs after the events specified in the workflow itself. For most repos, where the events are Users of each repos can configure their workflows to run one of the solutions you suggested, but RGH can’t. |
... at least officially. Can you try hacking the “Re-run all jobs” to work on any run? Edit: tried, GitHub responds with "What‽" |
I found a failed run’s “Re-run all jobs” form, changed its URL to use a different run id, and submitted it. It failed either because their |
That's a bummer! |
Awesome! Can you open an issue on your repo to add manual deployment? |
|
Explanation
GitHub Actions API has the ability to re-run a specific workflow, but the GitHub UI doesn't have any option to re-run a workflow unless the workflow has some failed jobs inside it.
(Well, GitHub doesn't exactly let you re-run the entire workflow, only specific failed jobs inside it, which is no exposed in their API).
The feature adds a button that should:
Sample screenshots
Re-running workflows
Triggering new workflows
How can this be used?
People do seem to need this for their own reasons (GH forum).
Existing alternatives
These "tricks" work, but they do not work on specific run that we want to re-run or require adding new actions to handle them.
Things I'm not sure about
There are basically two "types" or "ways" of running a workflow (if you could call them that)
Option 1 can be easily done, now sure how we can tackle option 2 (which also may not be possible).
The text was updated successfully, but these errors were encountered: