Weekend Sale Special Limited Time 75% Discount Offer - Ends in 0d 00h 00m 00s - Coupon code: CFsave75

Microsoft GitHub Actions Exam GH-200 Question # 12 Topic 2 Discussion

Microsoft GitHub Actions Exam GH-200 Question # 12 Topic 2 Discussion

GH-200 Exam Topic 2 Question 12 Discussion:
Question #: 12
Topic #: 2

As a developer, you need to add the correct syntax to allow the following workflow file to be triggered by multiple types of events.

Which two code blocks should you add starting at line 5? Each correct answer presents a complete solution.

NOTE: Each correct answer is worth one point.

4 name: Node CI/CD

5

6

7

8 jobs:

9 build:

10 runs-on:

11 steps:

12 - uses: actions/checkout@v2

13 - uses: actions/setup-node@v1

14 with:

15 node-version: 12

16 - run: npm ci

17 - run: npm test

18


A.

on:

env:

- ' prod '

- ' qa '

- ' test '


B.

on: [push, commit]


C.

on: [push, pull_request]


D.

on:

branches:

- ' main '

- ' dev '


E.

on:

push:

branches:

- main

release:

types:

- created


F.

on:

schedule:

- cron: ' */15 * * * * '

initiate:

- ' main '


Get Premium GH-200 Questions

Contribute your Thoughts:


Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.