Skip to content

Commit 830cc90

Browse files
committed
docs: update post-checkout-command description to reflect it runs even if checkout is disabled
fix: run post-checkout-command even when checkout is disabled
1 parent fb7ae44 commit 830cc90

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ GitHub Action for Python (Poetry, pytest with coverage and linters with prek/pr
99
Name | Description | Default | Required
1010
-|:-|-|-
1111
checkout| Set `1` to run [checkout](https://github.com/marketplace/actions/checkout). | `1` | No
12-
post-checkout-command| Optional shell command(s) to run right after checkout (only when `checkout` is `1`). Multiple commands can be passed as a multi-line string (e.g. with YAML `\|`). The value is interpolated into a `bash` script, so pass only trusted content. | `''` | No
12+
post-checkout-command| Optional shell command(s) to run right after checkout (even if checkout is disabled). Multiple commands can be passed as a multi-line string (e.g. with YAML `\|`). The value is interpolated into a `bash` script, so pass only trusted content. | `''` | No
1313
set-python| Set `1` to run [setup-pytyon](https://github.com/marketplace/actions/setup-python). | `1` | No
1414
python-version| `python-version` for setup-python. | `3.12` | No
1515
setup-type| Python environment setup type (`poetry` `uv`, or `pip`.). | `poetry` | No

action.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@ runs:
131131
persist-credentials: false
132132
fetch-depth: 0
133133
- name: Run post-checkout command
134-
if: ${{ inputs.checkout == '1' && inputs.post-checkout-command != '' }}
134+
if: ${{ inputs.post-checkout-command != '' }}
135135
run: |
136136
echo "::group::post-checkout command"
137137
${{ inputs.post-checkout-command }}

0 commit comments

Comments
 (0)