Forrest logo
back to the gh tool

gh-run:tldr:57fe0

gh-run: Re-run a specific workflow.
$ gh run rerun ${workflow_run_number}
try on your machine

The command gh run rerun ${workflow_run_number} is used in the GitHub CLI (Command Line Interface) to rerun a specific workflow run.

Here's what each part of the command means:

  • gh: This is the command to interact with GitHub using the CLI.
  • run: This is the subcommand used to interact with workflow runs in the repository.
  • rerun: This subcommand is used to rerun a specific workflow run. It allows you to rerun a workflow run using the same inputs and conditions as the original run.
  • ${workflow_run_number}: This is a placeholder that needs to be replaced with the actual workflow run number you want to rerun. The workflow run number is a unique identifier assigned to each workflow run in GitHub Actions.

So, to use this command, you would replace ${workflow_run_number} with the actual number of the workflow run you want to rerun. This will rerun the specified workflow with the same configuration and conditions as the original run.

This explanation was created by an AI. In most cases those are correct. But please always be careful and never run a command you are not sure if it is safe.
back to the gh tool