Skip to content

Commit

Permalink
[548] workflow_dispatch boolean inputs are not actually booleans (#550)
Browse files Browse the repository at this point in the history
* Workflow_dispatch inputs bools are strings and not booleans

* Add a comment as to why || was added

* revert the || change as that's not useful

---------

Co-authored-by: Phil Nachreiner <[email protected]>
  • Loading branch information
philjn and philnach authored Oct 9, 2023
1 parent 1808577 commit 2a60f6d
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/sync_peloton_to_garmin.yml
Original file line number Diff line number Diff line change
Expand Up @@ -90,14 +90,15 @@ jobs:
TZ: America/Chicago

- name: archive files
if: ${{ github.event.inputs.saveLocalCopy }}
# saveLocalCopy can be set when workflow action is manually run otherwise it's always skipped
if: ${{ github.event.inputs.saveLocalCopy == 'true' }}
run: |
apt-get update
apt-get install -y zip
zip -r -j output.zip ${{ env.OUTPUT_DIR }}
- uses: actions/upload-artifact@v3
if: ${{ github.event.inputs.saveLocalCopy }}
if: ${{ github.event.inputs.saveLocalCopy == 'true' }}
with:
name: output
path: output.zip
Expand Down

0 comments on commit 2a60f6d

Please sign in to comment.