Skip to content

Commit

Permalink
Fix if condition for upload-logs step (#87)
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
lihop authored Jan 17, 2023
1 parent 9b3b2b5 commit 9b2b4f2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
Expand Down

0 comments on commit 9b2b4f2

Please sign in to comment.