File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 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 :
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
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
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
You can’t perform that action at this time.
0 commit comments