Skip to content

Commit

Permalink
Add lfs option to inputs (#21)
Browse files Browse the repository at this point in the history
* Add lfs option to inputs
* Update README.md
  • Loading branch information
PrajwalVandana authored Jul 23, 2024
1 parent 371ec06 commit a727abb
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,7 @@ You can also use any major tags like `@v1` for any `@v1.*.*`
| `exe_path` | ./dist | Path on runner-os, where executable will be stored
| `upload_exe_with_name`| - | Upload exe_ artifact with this name. Else, it won't upload
| `clean_checkout` | true | If true, perform a clean checkout; if false, skip cleaning. Cleaning will remove all existing local files not in the repository during checkout. If you use utilities like pyinstaller-versionfile, set this to false.
| `lfs` | false | Whether to download Git-LFS files (passed to `lfs` option in actions/checkout step)
| `compression_level` | 6 | Level of compression for archive. <br>Range: 0 and 9. <br>_(0 = No compression, 9 = Max compression)_.

<br>
Expand Down
4 changes: 4 additions & 0 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,9 @@ inputs:
clean_checkout:
description: 'If true, perform a clean checkout; if false, skip cleaning. Cleaning will remove all existing local files not in the repository during checkout. If you use utilities like pyinstaller-versionfile, set this to false.'
default: true
lfs:
description: Whether to download Git-LFS files (passed to actions/checkout)
default: false
compression_level:
description: 'Level of compression for archive (between 0 and 9). 0 = No compression, 9 = Max compression.'
default: 6
Expand Down Expand Up @@ -89,6 +92,7 @@ runs:
uses: actions/checkout@v4
with:
clean: ${{ inputs.clean_checkout }}
lfs: ${{ inputs.lfs }}

- name: (Install) dependencies
if: inputs.requirements != ''
Expand Down

0 comments on commit a727abb

Please sign in to comment.