Run new workflow on an existing pull request

Is there a way to run a new workflow on an existing pull request without adding a new commit to the PR?

I know it’s possible to trigger workflows manually, but this doesn’t change the check status of the PR. It also doesn’t carry the pull_request context variables, and injecting them all in the inputs is bothersome and unreliable.

Re-running is also possible, but it doesn’t use the most recent workflow definition.

Suggested fixes

  1. Allow running the pull_request workflows the same way as with workflow_dispatch, but offering a PR selection box instead of the inputs dialog. The same could be done for tags, commits, etc.
  2. Add a way to run the workflow from the PR itself. This would use the latest workflow definition by default, since there’s no reason the run outdated checks.
1 Like