Skip to content

Commit 0e16927

Browse files
agatsohandrevmatos
andcommitted
Change the filter tag regex so that publish_production workflow also works for pre-releases
Update .circleci/config.yml according semver doc regex recommnded by Andre Co-authored-by: André Vitor de Lima Matos <andre.vmatos@gmail.com>
1 parent 4817258 commit 0e16927

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

.circleci/config.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ anchor_1: &attach_options
2323
anchor_2: &filter_release_tag
2424
filters:
2525
tags:
26-
only: /^v\d+\.\d+\.\d+$/
26+
only: /^v(0|[1-9]\d*)\.(0|[1-9]\d*)\.(0|[1-9]\d*)(?:-((?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*)(?:\.(?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*))*))?(?:\+([0-9a-zA-Z-]+(?:\.[0-9a-zA-Z-]+)*))?$/
2727

2828
anchor_3: &executor_shared_options
2929
working_directory: << pipeline.parameters.working_directory >>

0 commit comments

Comments
 (0)