From 0ef6349409f7768e8adaa694e328fe2f92199c55 Mon Sep 17 00:00:00 2001 From: Leroy Hopson Date: Sat, 14 Jan 2023 23:21:48 +1300 Subject: [PATCH] Fix if condition for upload-logs step 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 }}