Skip to content

Commit

Permalink
ci: make ci job only run if necessary
Browse files Browse the repository at this point in the history
  • Loading branch information
porcellus committed Oct 27, 2024
1 parent 4d105b4 commit 82040dc
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,12 @@ jobs:
workflows:
version: 2
tagged-build:
when: # One must be true to trigger
or:
- equal: [true, <<pipeline.parameters.force>>]
- matches: { pattern: "dev-v[0-9]+(\\.[0-9]+)*", value: << pipeline.git.tag >> }
- matches: { pattern: "v[0-9]+(\\.[0-9]+)*", value: << pipeline.git.tag >> }
- equal: ["master", << pipeline.git.branch >>]
jobs:
- publish:
context:
Expand Down

0 comments on commit 82040dc

Please sign in to comment.