Forgot to download cache

This commit is contained in:
CommanderRedYT
2022-01-13 11:06:14 +01:00
parent 2f13a1b8b1
commit 940c076977

View File

@ -283,6 +283,26 @@ jobs:
exit 1
fi
- name: Cache sonar-scanner
uses: actions/cache@v2
id: cache-sonar-scanner
with:
path: sonar-scanner
key: ${{ runner.os }}-sonar-scanner-${{ env.SONAR_SCANNER_VERSION }}
- name: Verify that "Cache sonar-scanner" had a hit
# GitHub doesnt support if
#if: steps.cache-sonar-scanner.outputs.cache-hit != 'true'
#run: git submodule update --init --recursive ${{ inputs.submodule }}
run: |
if echo ${{ steps.cache-sonar-scanner.outputs.cache-hit }} | grep -c "true"
then
echo "Cache sonar-scanner had a hit, good"
else
echo "Cache sonar-scanner did not hit? Did the prepare step run successfully?"
exit 1
fi
- name: Cache sonar-build-wrapper
uses: actions/cache@v2
id: cache-sonar-build-wrapper