Skip preview links for non-main PRs#6161
Conversation
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #6161 +/- ##
=======================================
Coverage 83.50% 83.50%
=======================================
Files 342 342
Lines 36522 36522
Branches 10224 10125 -99
=======================================
Hits 30497 30497
Misses 5597 5597
Partials 428 428 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
|
Isn't this something that can be done in the yaml file which says where we run this job? I'm not really sure though |
I was just writing a similar comment, it should be possible to do it like this: https://docs.github.com/en/actions/reference/workflows-and-actions/workflow-syntax#using-filters |
|
True! I over-complicated it. Let me change it in the yaml instead. Thanks |
3a538cf to
625c2f6
Compare
|
Thanks! |
|
Thanks for addressing it so quickly! |
No problem! Thanks Nazim! |
Main | Deploy preview
Summary
Example
For a deployment PR like #6156 that targets production, the add-preview-links workflow no longer runs, so it will not re-add preview links after they are removed.
Addresses #6157.
Testing
node --test .github/scripts/add-preview-links.test.mjsnode --check .github/scripts/add-preview-links.mjsnode --check .github/scripts/add-preview-links.test.mjsgit diff --checkoxfmt --check .github/scripts/add-preview-links.mjs .github/scripts/add-preview-links.test.mjs