diff --git a/.github/actions/maven-build-and-tag/action.yml b/.github/actions/maven-build-and-tag/action.yml index b53eaf748..40deeecba 100644 --- a/.github/actions/maven-build-and-tag/action.yml +++ b/.github/actions/maven-build-and-tag/action.yml @@ -231,7 +231,7 @@ runs: git push origin $VERSION - name: Clean m2 cache - if: github.event_name == 'push' + if: github.event_name == 'push' && github.event.repository.default_branch == github.ref_name shell: bash run: | rm -fr ~/.m2/repository/org/activiti