Skip to content

Commit ea7d1c4

Browse files
author
derBobby
committed
refactor(pipeline): Unifying variable jar-cache-key
BREAKING CHANGE: Variable changed
1 parent 4874959 commit ea7d1c4

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

.github/workflows/callable-mvn.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ on:
1111
default: false
1212
type: boolean
1313
outputs:
14-
cache-key:
14+
jar-cache-key:
1515
value: ${{ jobs.maven.outputs.jar-cache-key }}
1616
description: Key for the cache that contains the buildable JAR
1717
app-version:
@@ -24,7 +24,7 @@ jobs:
2424
env:
2525
CACHE_KEY: ''
2626
outputs:
27-
jar-cache-key: ${{ steps.cache-key-step.outputs.jar-cache-key }}
27+
jar-cache-key: ${{ steps.jar-cache-key-step.outputs.jar-cache-key }}
2828
app-version: ${{ steps.extract-app-version.outputs.app-version }}
2929
steps:
3030
- name: Checkout Git
@@ -78,7 +78,7 @@ jobs:
7878
echo "app-version=$(mvn help:evaluate -Dexpression=project.version -q -DforceStdout)" >> $GITHUB_OUTPUT
7979
8080
- if: ${{ inputs.cache == true }}
81-
id: cache-key-step
81+
id: jar-cache-key-step
8282
name: Create cache key
8383
run: echo "jar-cache-key=${{ runner.os }}-jar-${{ hashFiles('target/*.jar') }}" >> $GITHUB_OUTPUT
8484

@@ -87,7 +87,7 @@ jobs:
8787
uses: actions/cache@v4
8888
with:
8989
path: ./target
90-
key: ${{ steps.cache-key-step.outputs.jar-cache-key }}
90+
key: ${{ steps.jar-cache-key-step.outputs.jar-cache-key }}
9191

9292
- name: Deploy to Maven (mvn ${{ inputs.mvn-stage }})
9393
run: mvn --batch-mode --file pom.xml deploy -DskipTests

0 commit comments

Comments
 (0)