QuestionQ14

Author and manage workflows

You need to prevent a GitHub Actions workflow from running. The solution must preserve the workflow’s configuration and execution history.

What should you do?

  • A Delete the workflow YAML file from the repository.
  • B Select Actions and disable the workflow.
  • C Rename the workflow YAML file.
  • D Archive the workflow in a new branch.
Explanation

Disabling a GitHub Actions workflow stops it from being triggered without deleting its workflow file, so the workflow configuration and existing run history are retained. GitHub documents this as disabling a workflow from the Actions interface.

Learn more

Community Discussion

No comments yet. Be the first to start the discussion!