Bird
0
0

You want your Remix CI pipeline to deploy only when code is merged into the main branch. Which trigger configuration is correct?

hard📝 Application Q8 of 15
Remix - Testing
You want your Remix CI pipeline to deploy only when code is merged into the main branch. Which trigger configuration is correct?
Aon: push: branches: - main
Bon: pull_request: branches: - develop
Con: push: branches: - feature/*
Don: schedule: - cron: '0 0 * * *'
Step-by-Step Solution
Solution:
  1. Step 1: Understand GitHub Actions triggers

    'push' with 'branches: main' triggers workflow on merges to main branch.
  2. Step 2: Compare options

    Only on: push: branches: - main triggers on push to main branch, matching requirement.
  3. Final Answer:

    on: push: branches: - main -> Option A
  4. Quick Check:

    Trigger on main branch push = on: push: branches: - main [OK]
Quick Trick: Use 'push' with 'branches: main' to trigger on main merges [OK]
Common Mistakes:
MISTAKES
  • Using pull_request on wrong branch
  • Triggering on feature branches instead of main
  • Using schedule instead of push trigger

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Remix Quizzes