Fix if condition for upload-logs step (#87)

Previously the if condition was always evaluating to a truthy string
(e.g. 'false == "true"' or 'true == "true"') as the string comparison
(`== 'true'`) was not inside the expression syntax (`${{ }}`) and thus
being treated as a string rather than being evaluated.
This commit is contained in:
Leroy Hopson 2023-01-17 16:29:46 +13:00 committed by GitHub
parent 9b3b2b590c
commit 9b2b4f2004
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -73,7 +73,7 @@ runs:
shell: bash
- id: upload-logs
if: ${{ inputs.debug }} == "true"
if: ${{ inputs.debug == 'true' }}
uses: actions/upload-artifact@v3
with:
name: cache-apt-pkgs-logs%${{ inputs.packages }}%${{ inputs.version }}