Skip to content

Commit

Permalink
make it work on tag
Browse files Browse the repository at this point in the history
  • Loading branch information
noisekit committed Oct 11, 2023
1 parent fa15fe3 commit 95c9988
Showing 1 changed file with 27 additions and 4 deletions.
31 changes: 27 additions & 4 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -261,16 +261,38 @@ jobs:
- run: git checkout << parameters.release-branch >>
- run: git push --set-upstream --force origin << parameters.release-branch >>

debug:
docker:
- image: cimg/node:<< pipeline.parameters.node-version >>
steps:
- run: echo "pipeline.git.branch = << pipeline.git.branch >>"
- run: echo "pipeline.git.tag = << pipeline.git.tag >>"
- run: echo "pipeline.git.revision = << pipeline.git.revision >>"
- run: echo "pipeline.git.base_revision = << pipeline.git.base_revision >>"
- run: echo "pipeline.project.git_url = << pipeline.project.git_url >>"

workflows:
version: 2.1
debug:
when:
and:
- not:
or:
- equal: ['tagged-releases', << pipeline.git.branch >>]
- equal: ['release/lp', << pipeline.git.branch >>]
- equal: ['test-release/lp', << pipeline.git.branch >>]
jobs:
- debug

ui:
when:
and:
- not: << pipeline.git.tag >>
- << pipeline.git.branch >>
- not:
equal: ['tagged-releases', << pipeline.git.branch >>]
or:
- equal: ['tagged-releases', << pipeline.git.branch >>]
- equal: ['release/lp', << pipeline.git.branch >>]
- equal: ['test-release/lp', << pipeline.git.branch >>]

jobs:
- checks
Expand Down Expand Up @@ -298,9 +320,10 @@ workflows:
when:
and:
- matches:
pattern: '^release-lp-\d{8}.*$'
pattern: '^release-lp.*'
value: << pipeline.git.tag >>
- equal: ['tagged-releases', << pipeline.git.branch >>]
# - not: << pipeline.git.branch >> # tags pushed have no branch
# - equal: ['tagged-releases', << pipeline.git.branch >>]
jobs:
- checks
- typecheck
Expand Down

0 comments on commit 95c9988

Please sign in to comment.