Repository navigation
Replies: 2 comments
|
If your goal is another attempt of the PR's existing workflow run, use Find the original run from the PR's Checks tab, or list candidate runs from the repository directory: gh run list --workflow some-workflow.yml --branch some-branch --event pull_request --limit 20 --json databaseId,headSha,createdAt,urlSelect the run for the intended PR revision, then replace gh run rerun RUN_ID
gh run watch RUN_IDThe listing assumes the original event was A rerun creates another attempt while retaining the earlier attempts. It reuses the original event's commit SHA and ref, so it does not test a newer branch tip or newly edited workflow YAML. For a new revision, trigger the workflow for that revision instead. GitHub currently allows reruns within 30 days of the initial run and requires repository write permission. See re-running workflows and jobs and the Checked against the documentation and CLI help; no workflow was rerun as part of preparing this answer. |

Uh oh!
There was an error while loading. Please reload this page.
Summary
When a new workflow is triggered on a specific branch/pull request, is it possible to replace the existing run on the pull request?
Actual:
gh workflow run some-workflow.yml --ref some-branch.Actionstab.Desired:
gh workflow run some-workflow.yml --ref some-branch.All reactions