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:
parent
2383aa0125
commit
84b0c1118b
|
@ -13,13 +13,16 @@ jobs:
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
- uses: actions/cache@v2
|
|
||||||
|
- name: Cache Maven Local Repo
|
||||||
|
if: ${{ !startsWith(github.ref, 'refs/tags/') }}
|
||||||
|
uses: actions/cache@v2
|
||||||
with:
|
with:
|
||||||
path: |
|
path: |
|
||||||
~/.m2/repository
|
~/.m2/repository/*/*/*/*/*
|
||||||
!~/.m2/repository/org/apache/activemq/artemis-*
|
!~/.m2/repository/org/apache/activemq/**/*-SNAPSHOT
|
||||||
!~/.m2/repository/org/apache/activemq/*-artemis
|
|
||||||
!~/.m2/repository/org/apache/activemq/examples
|
!~/.m2/repository/org/apache/activemq/examples
|
||||||
|
!~/.m2/repository/org/apache/activemq/tests
|
||||||
key: ${{ runner.os }}-maven-test-${{ hashFiles('**/pom.xml') }}
|
key: ${{ runner.os }}-maven-test-${{ hashFiles('**/pom.xml') }}
|
||||||
restore-keys: |
|
restore-keys: |
|
||||||
${{ runner.os }}-maven-test-
|
${{ runner.os }}-maven-test-
|
||||||
|
@ -47,13 +50,16 @@ jobs:
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
- uses: actions/cache@v2
|
|
||||||
|
- name: Cache Maven Local Repo
|
||||||
|
if: ${{ !startsWith(github.ref, 'refs/tags/') }}
|
||||||
|
uses: actions/cache@v2
|
||||||
with:
|
with:
|
||||||
path: |
|
path: |
|
||||||
~/.m2/repository
|
~/.m2/repository/*/*/*/*/*
|
||||||
!~/.m2/repository/org/apache/activemq/artemis-*
|
!~/.m2/repository/org/apache/activemq/**/*-SNAPSHOT
|
||||||
!~/.m2/repository/org/apache/activemq/*-artemis
|
|
||||||
!~/.m2/repository/org/apache/activemq/examples
|
!~/.m2/repository/org/apache/activemq/examples
|
||||||
|
!~/.m2/repository/org/apache/activemq/tests
|
||||||
key: ${{ runner.os }}-maven-checks-${{ hashFiles('**/pom.xml') }}
|
key: ${{ runner.os }}-maven-checks-${{ hashFiles('**/pom.xml') }}
|
||||||
restore-keys: |
|
restore-keys: |
|
||||||
${{ runner.os }}-maven-checks-
|
${{ runner.os }}-maven-checks-
|
||||||
|
|
Loading…
Reference in New Issue