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

Microsoft GitHub Actions Exam GH-200 Question # 34 Topic 4 Discussion

Microsoft GitHub Actions Exam GH-200 Question # 34 Topic 4 Discussion

GH-200 Exam Topic 4 Question 34 Discussion:
Question #: 34
Topic #: 4

You are a DevOps engineer working on deployment workflows. You need to execute the deploy job only if the current branch name is feature-branch. Which code snippet will help you implement the conditional execution of the job?


A.

jobs:

deploy:

if: github.branch_name == ' feature-branch '

runs-on: ubuntu-latest


B.

jobs:

deploy:

if: github.ref_name == ' feature-branch '

runs-on: ubuntu-latest


C.

jobs:

deploy:

if: github.ref.name = ' feature-branch '

runs-on: ubuntu-latest


D.

jobs:

deploy:

if: github.branch.name == ' feature-branch '

runs-on: ubuntu-latest


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.