Author and manage workflows Questions
Practice questions for Author and manage workflows topic in GitHub Actions. 48 questions covering this domain.
Which statement about the `schedule` event is correct?
Which trigger must a workflow declare so that another workflow can call it as a reusable workflow?
Where must a GitHub Actions workflow file be stored for GitHub to detect and run it?
A manually triggered workflow defines an input of type boolean named `perform_deploy`. Which expression preserves it as a Boolean value?
A workflow uses both branch filters and path filters on the `push` event. When will the workflow run?
A step needs to pass a computed value to later steps in the same job as a step output. Which environment file should the step write to?
Workflow A calls reusable workflow B, and workflow B calls reusable workflow C. A secret is passed from A to B, but C cannot read it. Why?
A workflow definition expands a matrix into 400 jobs. What should the author expect?
A repository receives many pushes to the same branch, and the team wants each new run to cancel the older in-progress run for that branch. Which workf...
A team uses a matrix for `os: [ubuntu, windows]` and `node: [18, 20]`, but they also need one extra job for `macos` with Node 20. Which matrix feature...
A deploy job must wait until a test job succeeds. Which keyword should be added to the deploy job?
An engineer adds `workflow_dispatch` to a workflow on a feature branch and expects to run it from the GitHub web UI, but the Run workflow button does ...
A push workflow should run for files under app/ except app/docs/. What syntax pattern supports this in one event definition?
A step should run only when workflow variable DAY_OF_WEEK equals Monday. In the if condition, which reference should be used?
A workflow has two cron schedules and one job should run only for the overnight schedule. Which value should the author inspect to determine which cro...
A script step inside a job container fails because it uses bash-specific syntax. What is the most likely cause?
A job runs directly on ubuntu-latest and starts a Redis service container. The step must connect to Redis from the runner process. What is required?
A reusable workflow needs to expose a value produced by one step to its caller. Which mapping chain is required?
A workflow defines both push and fork as triggers. Which statement is correct about when it runs?
You want a push workflow to run for branches under releases/ except branches ending in -alpha. What is the supported approach?
Sign in to see all 48 questions
Create a free account to browse all questions — completely free during our launch phase.