salesforcecli / github-workflows

reusable shared CI scripts
BSD 3-Clause "New" or "Revised" License
15 stars 8 forks source link

`yarnInstallWithRetries/action.yml` ignores input `ignore-scripts` #96

Closed Jucamola closed 6 months ago

Jucamola commented 7 months ago

The --ignore-scripts flag is always added because expressions evaluate the input as a string, so 'false' is true. It can be fixed just by changing it to ${{ inputs.ignore-scripts == 'true' && '--ignore-scripts' || '' }}

I didn't check, but I think there could be the same problem here, here and here

iowillhoit commented 6 months ago

Hey @Jucamola, thanks for the issue. This was fixed yesterday here: https://github.com/salesforcecli/github-workflows/pull/99

The other workflows you linked to will work as expected because they are Workflows and not Actions. Workflow inputs are able to be typed where Action inputs can only be strings.

Example with the npmPublish workflows: