Config.Tips
Config.Tips copied to clipboard
Filters
What is the name of the config kind?
.circleci/config.yml
Config Tip
workflows: version: 2 build-main: jobs: - build: filters: branches: only: main - publish-latest: requires: - build filters: branches: only: main - deploy: requires: - publish-latest filters: branches: only: main
Give us a short description of the config kind
This tip adds the filtering on the workflows enforcing it to take place on a given git branch
Body Area
This tip will help you when deploying to production, by enforcing the deployments/publishing on a given and specific branch.
Anything Else?
No response
Thanks for the tip @joseph-njogu! If you're interested in making a PR, we'd love to give you the appropriate credit. Contributors will appear on https://config.tips/about/.
If you just want to share the tip as an issue that's just fine too! We'd love to give the opportunity for someone else to commit this too!
I will create a PR
On Wed, 6 Sept 2023 at 00:11, Kyle a.k.a. TechSquidTV < @.***> wrote:
Thanks for the tip @joseph-njogu https://github.com/joseph-njogu! If you're interested in making a PR, we'd love to give you the appropriate credit. Contributors will appear on https://config.tips/about/.
If you just want to share the tip as an issue that's just fine too! We'd love to give the opportunity for someone else to commit this too!
— Reply to this email directly, view it on GitHub https://github.com/CircleCI-Public/Config.Tips/issues/41#issuecomment-1707315438, or unsubscribe https://github.com/notifications/unsubscribe-auth/AGIFBKMXXUSJDQDNQ2YURSTXY6IPLANCNFSM6AAAAAA4MFOEVU . You are receiving this because you were mentioned.Message ID: @.***>