Skip to content

Commit

Permalink
only save cache when it wasn't hit before
Browse files Browse the repository at this point in the history
  • Loading branch information
Timbals committed Jan 11, 2024
1 parent 6701a9b commit af4c688
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ jobs:
- name: Checkout source code
uses: actions/checkout@v3
- name: Run CogniCrypt
uses: Timbals/CryptoAnalysis@8894fae7b78de54fadd3de2d6cd5a77138e0b3df
uses: Timbals/CryptoAnalysis@a4032930f0a7b3bdb761130eae8d2229c9534b0a
with:
rulesDir: "$(pwd)/JCA-CrySL-rules"
appPath: "$(pwd)/CryptoAnalysisTargets/CogniCryptDemoExample/Examples.jar"
Expand Down
3 changes: 1 addition & 2 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -80,10 +80,9 @@ runs:
if: steps.cache.outputs.cache-hit != 'true'
shell: bash
run: cp CryptoAnalysisBuild_98e04be6/CryptoAnalysis/build/CryptoAnalysis-*-jar-with-dependencies.jar CryptoAnalysisBuild_98e04be6/CryptoAnalysis.jar

- name: Save CryptoAnalysis Cache
uses: actions/cache/save@v3
if: always()
if: steps.cache.outputs.cache-hit != 'true'
with:
path: CryptoAnalysisBuild_98e04be6/CryptoAnalysis.jar
key: ${{ steps.cache-key.outputs.cache-key }}
Expand Down

0 comments on commit af4c688

Please sign in to comment.