Removed 'github does not support ifs'
This commit is contained in:
52
.github/workflows/workflow.yml
vendored
52
.github/workflows/workflow.yml
vendored
@@ -184,17 +184,10 @@ jobs:
|
|||||||
key: ${{ runner.os }}-espressif-${{ steps.get-esp-idf-release.outputs.tag_name }}
|
key: ${{ runner.os }}-espressif-${{ steps.get-esp-idf-release.outputs.tag_name }}
|
||||||
|
|
||||||
- name: Verify that "Cache .espressif" had a hit
|
- name: Verify that "Cache .espressif" had a hit
|
||||||
# GitHub doesnt support if
|
if: ${{ steps.cache-espressif.outputs.cache-hit != 'true' }}
|
||||||
#if: steps.cache-espressif.outputs.cache-hit != 'true'
|
|
||||||
#run: git submodule update --init --recursive ${{ inputs.submodule }}
|
|
||||||
run: |
|
run: |
|
||||||
if echo ${{ steps.cache-espressif.outputs.cache-hit }} | grep -c "true"
|
echo "Cache .espressif did not hit? Did the prepare step run successfully?"
|
||||||
then
|
exit 1
|
||||||
echo "Cache .espressif had a hit, good"
|
|
||||||
else
|
|
||||||
echo "Cache .espressif did not hit? Did the prepare step run successfully?"
|
|
||||||
exit 1
|
|
||||||
fi
|
|
||||||
|
|
||||||
- name: Setup ccache
|
- name: Setup ccache
|
||||||
uses: 0xFEEDC0DE64/setup_ccache@main
|
uses: 0xFEEDC0DE64/setup_ccache@main
|
||||||
@@ -271,17 +264,10 @@ jobs:
|
|||||||
key: ${{ runner.os }}-espressif-${{ steps.get-esp-idf-release.outputs.tag_name }}
|
key: ${{ runner.os }}-espressif-${{ steps.get-esp-idf-release.outputs.tag_name }}
|
||||||
|
|
||||||
- name: Verify that "Cache .espressif" had a hit
|
- name: Verify that "Cache .espressif" had a hit
|
||||||
# GitHub doesnt support if
|
if: ${{ steps.cache-espressif.outputs.cache-hit != 'true' }}
|
||||||
#if: steps.cache-espressif.outputs.cache-hit != 'true'
|
|
||||||
#run: git submodule update --init --recursive ${{ inputs.submodule }}
|
|
||||||
run: |
|
run: |
|
||||||
if echo ${{ steps.cache-espressif.outputs.cache-hit }} | grep -c "true"
|
echo "Cache .espressif did not hit? Did the prepare step run successfully?"
|
||||||
then
|
exit 1
|
||||||
echo "Cache .espressif had a hit, good"
|
|
||||||
else
|
|
||||||
echo "Cache .espressif did not hit? Did the prepare step run successfully?"
|
|
||||||
exit 1
|
|
||||||
fi
|
|
||||||
|
|
||||||
- name: Cache sonar-scanner
|
- name: Cache sonar-scanner
|
||||||
uses: actions/cache@v2
|
uses: actions/cache@v2
|
||||||
@@ -291,17 +277,10 @@ jobs:
|
|||||||
key: ${{ runner.os }}-sonar-scanner-${{ env.SONAR_SCANNER_VERSION }}
|
key: ${{ runner.os }}-sonar-scanner-${{ env.SONAR_SCANNER_VERSION }}
|
||||||
|
|
||||||
- name: Verify that "Cache sonar-scanner" had a hit
|
- name: Verify that "Cache sonar-scanner" had a hit
|
||||||
# GitHub doesnt support if
|
if: ${{ steps.cache-sonar-scanner.outputs.cache-hit != 'true' }}
|
||||||
#if: steps.cache-sonar-scanner.outputs.cache-hit != 'true'
|
|
||||||
#run: git submodule update --init --recursive ${{ inputs.submodule }}
|
|
||||||
run: |
|
run: |
|
||||||
if echo ${{ steps.cache-sonar-scanner.outputs.cache-hit }} | grep -c "true"
|
echo "Cache sonar-scanner did not hit? Did the prepare step run successfully?"
|
||||||
then
|
exit 1
|
||||||
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
|
||||||
@@ -311,17 +290,10 @@ jobs:
|
|||||||
key: ${{ runner.os }}-sonar-build-wrapper
|
key: ${{ runner.os }}-sonar-build-wrapper
|
||||||
|
|
||||||
- name: Verify that "Cache sonar-build-wrapper" had a hit
|
- name: Verify that "Cache sonar-build-wrapper" had a hit
|
||||||
# GitHub doesnt support if
|
if: ${{ steps.cache-sonar-build-wrapper.outputs.cache-hit != 'true' }}
|
||||||
#if: steps.cache-sonar-build-wrapper.outputs.cache-hit != 'true'
|
|
||||||
#run: git submodule update --init --recursive ${{ inputs.submodule }}
|
|
||||||
run: |
|
run: |
|
||||||
if echo ${{ steps.cache-sonar-build-wrapper.outputs.cache-hit }} | grep -c "true"
|
echo "Cache sonar-build-wrapper did not hit? Did the prepare step run successfully?"
|
||||||
then
|
exit 1
|
||||||
echo "Cache sonar-build-wrapper had a hit, good"
|
|
||||||
else
|
|
||||||
echo "Cache sonar-build-wrapper did not hit? Did the prepare step run successfully?"
|
|
||||||
exit 1
|
|
||||||
fi
|
|
||||||
|
|
||||||
- name: Cache sonar-build-wrapper-output
|
- name: Cache sonar-build-wrapper-output
|
||||||
uses: actions/cache@v2
|
uses: actions/cache@v2
|
||||||
|
Reference in New Issue
Block a user