NO-JIRA: update GHA cache config to workaorund broken exclusions, tweak excludes, skip cache for tags

include token pom change to prod creation of a new cache
This commit is contained in:
Robbie Gemmell 2021-10-13 15:43:17 +01:00
parent 2383aa0125
commit 84b0c1118b
2 changed files with 14 additions and 9 deletions

View File

@ -13,13 +13,16 @@ jobs:
steps:
- uses: actions/checkout@v2
- uses: actions/cache@v2
- name: Cache Maven Local Repo
if: ${{ !startsWith(github.ref, 'refs/tags/') }}
uses: actions/cache@v2
with:
path: |
~/.m2/repository
!~/.m2/repository/org/apache/activemq/artemis-*
!~/.m2/repository/org/apache/activemq/*-artemis
~/.m2/repository/*/*/*/*/*
!~/.m2/repository/org/apache/activemq/**/*-SNAPSHOT
!~/.m2/repository/org/apache/activemq/examples
!~/.m2/repository/org/apache/activemq/tests
key: ${{ runner.os }}-maven-test-${{ hashFiles('**/pom.xml') }}
restore-keys: |
${{ runner.os }}-maven-test-
@ -47,13 +50,16 @@ jobs:
steps:
- uses: actions/checkout@v2
- uses: actions/cache@v2
- name: Cache Maven Local Repo
if: ${{ !startsWith(github.ref, 'refs/tags/') }}
uses: actions/cache@v2
with:
path: |
~/.m2/repository
!~/.m2/repository/org/apache/activemq/artemis-*
!~/.m2/repository/org/apache/activemq/*-artemis
~/.m2/repository/*/*/*/*/*
!~/.m2/repository/org/apache/activemq/**/*-SNAPSHOT
!~/.m2/repository/org/apache/activemq/examples
!~/.m2/repository/org/apache/activemq/tests
key: ${{ runner.os }}-maven-checks-${{ hashFiles('**/pom.xml') }}
restore-keys: |
${{ runner.os }}-maven-checks-

View File

@ -1860,7 +1860,6 @@
</reportSet>
</reportSets>
</plugin>
</plugins>
</reporting>