From 9096e3c6ac06c12be74d040c32b0889322ed0b36 Mon Sep 17 00:00:00 2001 From: bernardodemelo Date: Mon, 16 Mar 2026 15:39:27 +0000 Subject: [PATCH 1/2] fix: every job should have the same filters --- .circleci/config.yml | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index 0863499..e967d11 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -61,7 +61,12 @@ jobs: workflows: main: jobs: - - package + - package: + filters: + tags: + only: /.*/ + branches: + ignore: /.*/ - hold_on_deploy: type: approval requires: From adcf01d15aeb102d874f9a2fd7e1b9a475295f2a Mon Sep 17 00:00:00 2001 From: bernardodemelo Date: Mon, 16 Mar 2026 17:07:21 +0000 Subject: [PATCH 2/2] fix: every job should have filters if one has - using tag anchors for readability --- .circleci/config.yml | 34 ++++++++++++++++++---------------- 1 file changed, 18 insertions(+), 16 deletions(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index e967d11..23739a9 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -58,29 +58,31 @@ jobs: - run: command: mvn -s .circleci/maven-release-settings.xml clean deploy -DdeployAtEnd=true -DperformRelease=true -DskipTests -Dspotbugs.skip=true +all_events: &all_events + tags: + only: /.*/ + branches: + only: /.*/ + +tag_only: &tag_only + <<: *all_events + branches: + ignore: /.*/ + +# Workflow configuration - Runs package on every push; deploys on tag push. workflows: main: jobs: - - package: - filters: - tags: - only: /.*/ - branches: - ignore: /.*/ + - package: + filters: *all_events + - hold_on_deploy: type: approval requires: - package - filters: - tags: - only: /.*/ - branches: - ignore: /.*/ + filters: *tag_only + - deploy: requires: - hold_on_deploy - filters: - tags: - only: /.*/ - branches: - ignore: /.*/ + filters: *tag_only