From 940c0769773ded41ad39b3facd525c5c2bbe65ad Mon Sep 17 00:00:00 2001 From: CommanderRedYT Date: Thu, 13 Jan 2022 11:06:14 +0100 Subject: [PATCH] Forgot to download cache --- .github/workflows/workflow.yml | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/.github/workflows/workflow.yml b/.github/workflows/workflow.yml index 024acea..8a29989 100644 --- a/.github/workflows/workflow.yml +++ b/.github/workflows/workflow.yml @@ -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