diff --git a/.github/actions/maven-build-and-tag/action.yml b/.github/actions/maven-build-and-tag/action.yml index 7f1ce1c38..f064d354f 100644 --- a/.github/actions/maven-build-and-tag/action.yml +++ b/.github/actions/maven-build-and-tag/action.yml @@ -81,7 +81,7 @@ runs: steps: - uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1 - - uses: actions/cache@704facf57e6136b1bc63b828d79edcd491f0ee84 # v3.3.2 + - uses: actions/cache/restore@704facf57e6136b1bc63b828d79edcd491f0ee84 # v3.3.2 with: path: ~/.m2/repository key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }} @@ -229,3 +229,17 @@ runs: run: | git tag -a $VERSION -m "Release version $VERSION" git push origin $VERSION + + - name: Clean m2 cache + if: github.event_name == 'push' + shell: bash + run: | + rm -fr ~/.m2/repository/org/activiti + rm -fr ~/.m2/repository/com/alfresco + + - name: Save maven cache + uses: actions/cache/save@704facf57e6136b1bc63b828d79edcd491f0ee84 # v3.3.2 + if: github.event_name == 'push' + with: + path: ~/.m2/repository + key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }} diff --git a/version.txt b/version.txt index 6b7ace3e9..ee80415e1 100644 --- a/version.txt +++ b/version.txt @@ -1 +1 @@ -v5.1.0 +v5.2.0