From 9954ee7aca13801e74d4a75177c84fa4aacbdfb5 Mon Sep 17 00:00:00 2001 From: Strongest Number 9 <16169054+StrongestNumber9@users.noreply.github.com> Date: Thu, 19 Dec 2024 12:38:09 +0200 Subject: [PATCH] Move away and restore coverity_tool.md5 to make caches work (#163) --- .github/workflows/coverity.yml | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/.github/workflows/coverity.yml b/.github/workflows/coverity.yml index 0f13091..508ecbf 100644 --- a/.github/workflows/coverity.yml +++ b/.github/workflows/coverity.yml @@ -95,8 +95,8 @@ jobs: path: ${RUNNER_TEMP}/${{ env.COVERITY }} key: ${{ runner.os }}-coverity-${{ hashFiles('coverity_tool.md5') }} - - name: Remove coverity_tool.md5 file - run: rm -f coverity_tool.md5 + - name: Move coverity_tool.md5 file so it won't conflict with maven + run: mv coverity_tool.md5 ${RUNNER_TEMP}/coverity_tool.md5 - name: Download and extract Coverity distribution if cache-miss if: steps.cache-pull-coverity-distribution.outputs.cache-hit != 'true' @@ -145,3 +145,6 @@ jobs: - name: Trigger Coverity analysis run: curl -X PUT -d token=${{ secrets.COVERITY_TOKEN }} ${{ env.COVERITY_SUBMIT_URL }} + + - name: Restore coverity_tool.md5 file so caches can be generated + run: mv ${RUNNER_TEMP}/coverity_tool.md5 coverity_tool.md5