Skip to content

Commit 18fd013

Browse files
committed
Github Action Cache should be unique for all pull requests
1 parent 92da051 commit 18fd013

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

.github/workflows/e2e-tests.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ jobs:
3939
uses: actions/cache@v1
4040
with:
4141
path: ~/.m2/repository
42-
key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
42+
key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}-${{ github.head_ref }}
4343
restore-keys: ${{ runner.os }}-maven-
4444
- name: Install Kubernetes Client
4545
run: mvn -f pom.xml -B -DskipTests clean install
@@ -66,7 +66,7 @@ jobs:
6666
uses: actions/cache@v1
6767
with:
6868
path: ~/.m2/repository
69-
key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
69+
key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}-${{ github.head_ref }}
7070
restore-keys: ${{ runner.os }}-maven-
7171
- name: Setup Java 8
7272
uses: actions/setup-java@v1
@@ -96,7 +96,7 @@ jobs:
9696
uses: actions/cache@v1
9797
with:
9898
path: ~/.m2/repository
99-
key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
99+
key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}-${{ github.head_ref }}
100100
restore-keys: ${{ runner.os }}-maven-
101101
- name: Setup Java 8
102102
uses: actions/setup-java@v1

0 commit comments

Comments
 (0)