From 9b2b4f2004c400ca4db1cd3622055dd784244fcb Mon Sep 17 00:00:00 2001 From: Leroy Hopson Date: Tue, 17 Jan 2023 16:29:46 +1300 Subject: [PATCH] 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. --- action.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/action.yml b/action.yml index 1e77dd8..2034e26 100644 --- a/action.yml +++ b/action.yml @@ -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 }}