Skip to content

Commit

Permalink
Add missing quotes for all inputs and env vars
Browse files Browse the repository at this point in the history
  • Loading branch information
dormant-user committed Jun 26, 2024
1 parent 2631f97 commit 0b0f3dc
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@ runs:
shell: bash

- name: Set up Python
if: env.setup_python == true
if: env.setup_python == 'true'
uses: actions/setup-python@v5
with:
python-version: ${{ inputs.python-version }}
Expand All @@ -171,12 +171,12 @@ runs:
shell: bash

- name: Run twine check
if: inputs.verify-metadata != false || inputs.dry-run != false
if: inputs.verify-metadata != 'false' || inputs.dry-run != 'false'
run: twine check ${{ inputs.packages-dir }}/*
shell: bash

- name: Get distribution hash
if: inputs.print-hash != false || inputs.verbose != false
if: inputs.print-hash != 'false' || inputs.verbose != 'false'
run: |
import hashlib
import pathlib
Expand Down Expand Up @@ -210,7 +210,7 @@ runs:
shell: python

- name: Print hash
if: inputs.print-hash != false || inputs.verbose != false
if: inputs.print-hash != 'false' || inputs.verbose != 'false'
run: |
if [ ! -f "hash_summary" ]; then
echo "::warning title=Hash Summary::Summary file is missing"
Expand All @@ -220,7 +220,7 @@ runs:
shell: bash

- name: Upload to pypi
if: inputs.dry-run != false
if: inputs.dry-run != 'true'
env:
TWINE_USERNAME: ${{ env.user }}
TWINE_PASSWORD: ${{ env.token }}
Expand Down

0 comments on commit 0b0f3dc

Please sign in to comment.