Skip to content

Commit

Permalink
Restore coverity_tool.md5 path, just remove it after checking for cac…
Browse files Browse the repository at this point in the history
…he (#160)
  • Loading branch information
StrongestNumber9 authored Dec 19, 2024
1 parent 9dc04dd commit 7570d79
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions .github/workflows/coverity.yml
Original file line number Diff line number Diff line change
Expand Up @@ -86,14 +86,17 @@ jobs:
GITHUB_TOKEN: ${{ github.token }}

- name: Download Coverity distribution md5sum for cache key
run: wget https://scan.coverity.com/download/linux64 --post-data "token=${{ secrets.COVERITY_TOKEN }}&project=${{ vars.COVERITY_PROJECT_URL_NAME }}&md5=1" -O ${RUNNER_TEMP}/coverity_tool.md5
run: wget https://scan.coverity.com/download/linux64 --post-data "token=${{ secrets.COVERITY_TOKEN }}&project=${{ vars.COVERITY_PROJECT_URL_NAME }}&md5=1" -O coverity_tool.md5

- name: Cache pull Coverity distribution, extracted
id: cache-pull-coverity-distribution
uses: actions/cache@v4
with:
path: ${{ env.COVERITY }}
key: ${{ runner.os }}-coverity-${{ hashFiles(format('{0}/coverity_tool.md5', runner.temp)) }}
key: ${{ runner.os }}-coverity-${{ hashFiles('coverity_tool.md5') }}

- name: Remove coverity_tool.md5 file
run: rm -f coverity_tool.md5

- name: Download and extract Coverity distribution if cache-miss
if: steps.cache-pull-coverity-distribution.outputs.cache-hit != 'true'
Expand Down

0 comments on commit 7570d79

Please sign in to comment.