nerdexam
GitHub

GITHUB-ACTIONS · Question #46

As a developer, you want to run a workflow from the Actions tab in GitHub. Which YAML snippet should you use to match the interface in this image? A. B. C. D.

The correct answer is C. on: workflow_dispatch: inputs: test_suite: description: Test suite type: choice value: functional options: - regression. The first image shows a workflow trigger with an option for the test suite, and the chosen YAML configuration matches this interface. Specifically, the test suite input is defined with type: choice and includes the option value: functional, which aligns with the visible UI elemen

GitHub Actions - Workflow Triggers

Question

As a developer, you want to run a workflow from the Actions tab in GitHub. Which YAML snippet should you use to match the interface in this image? A. B. C. D.

Exhibits

GITHUB-ACTIONS question #46 exhibit 1
GITHUB-ACTIONS question #46 exhibit 2
GITHUB-ACTIONS question #46 exhibit 3
GITHUB-ACTIONS question #46 exhibit 4
GITHUB-ACTIONS question #46 exhibit 5

Options

  • Aon: workflow_dispatch: inputs: test_suite: description: Test suite type: choice options: - functional - regression
  • Bon: workflow_run: inputs: test_suite: description: Test suite type: string options: - functional - regression
  • Con: workflow_dispatch: inputs: test_suite: description: Test suite type: choice value: functional options: - regression
  • Don: workflow_run: inputs: test_suite: description: Test suite type: choice options: - functional - regression

How the community answered

(28 responses)
  • A
    4% (1)
  • C
    93% (26)
  • D
    4% (1)

Explanation

The first image shows a workflow trigger with an option for the test suite, and the chosen YAML configuration matches this interface. Specifically, the test suite input is defined with type: choice and includes the option value: functional, which aligns with the visible UI elements in the first

Topics

#workflow_dispatch#manual trigger#workflow YAML#Actions tab

Community Discussion

No community discussion yet for this question.

Full GITHUB-ACTIONS Practice