🎙 Free live masterclass · Sun, 29 Nov, 7:00 pm IST · Java Full Stack roadmap Register free →
Skills101
← 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?

  1. A.Which events trigger the workflow, such as push or pull_request
  2. B.Which machine the job runs on
  3. C.The secrets the job can read
  4. 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 →