← Quiz: CI/CD with GitHub Actions: all 10 questions
Quiz: CI/CD with GitHub Actions · Question 7 of 10
In a GitHub Actions workflow, what does the on: key define?
In a GitHub Actions workflow, what does the on: key define?
- A.Which events trigger the workflow, such as push or pull_request
- B.Which machine the job runs on
- C.The secrets the job can read
- D.The Docker image to build
Answer & explanation
Correct answer: Which events trigger the workflow, such as push or pull_request
runs-on picks the machine; on picks the trigger.
Can you get the rest right without peeking?
Take the timed Quiz: CI/CD with GitHub Actions quiz free. Pass it to earn XP and count towards your certificate.
Start the quiz →