Skip to content

Commit

Permalink
clean_checkout input to handle cleaning after checkout (#14)
Browse files Browse the repository at this point in the history
* Update action.yml

* Make clean optional

* Update README.md for optional clean checkout feature

* Make default for clean_checkout true

* Make default for clean_checkout true - README
  • Loading branch information
aliencaocao authored Jan 28, 2024
1 parent f51f112 commit 8085bb0
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,7 @@ You can also use any major tags like `@v1` for any `@v1.*.*`
| `pyinstaller_ver` | - | Specific pyinstaller version you want to use *(with proper signs, like `==5.13.2`)*
| `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.

<br>

Expand Down
5 changes: 5 additions & 0 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,9 @@ inputs:
upload_exe_with_name:
description: If passed, uploads executable artifact with this name. Else, artifact won't be uploaded.
default: ''
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

outputs:
executable_path:
Expand Down Expand Up @@ -80,6 +83,8 @@ runs:

- name: Checkout repository
uses: actions/checkout@v3
with:
clean: ${{ inputs.clean_checkout }}

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

0 comments on commit 8085bb0

Please sign in to comment.