Forgot to download cache
This commit is contained in:
20
.github/workflows/workflow.yml
vendored
20
.github/workflows/workflow.yml
vendored
@ -283,6 +283,26 @@ jobs:
|
|||||||
exit 1
|
exit 1
|
||||||
fi
|
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
|
- name: Cache sonar-build-wrapper
|
||||||
uses: actions/cache@v2
|
uses: actions/cache@v2
|
||||||
id: cache-sonar-build-wrapper
|
id: cache-sonar-build-wrapper
|
||||||
|
Reference in New Issue
Block a user