Skip to content

Commit

Permalink
AAE-17877 skip saving maven cache on PRs (#380)
Browse files Browse the repository at this point in the history
Co-authored-by: Anahide Tchertchian <[email protected]>
  • Loading branch information
wojciech-piotrowiak and atchertchian authored Nov 27, 2023
1 parent b57a199 commit 706d3f3
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 2 deletions.
16 changes: 15 additions & 1 deletion .github/actions/maven-build-and-tag/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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') }}
Expand Down Expand Up @@ -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') }}
2 changes: 1 addition & 1 deletion version.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
v5.1.0
v5.2.0

0 comments on commit 706d3f3

Please sign in to comment.