Skip to content

Commit 47b9382

Browse files
update action.yml and readme
1 parent 5bbdf11 commit 47b9382

File tree

3 files changed

+9
-10
lines changed

3 files changed

+9
-10
lines changed

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -29,10 +29,10 @@ Please refer to the [release page](https://github.com/actions/checkout/releases/
2929
# Otherwise, uses the default branch.
3030
ref: ''
3131

32-
# Whether to checkout the default repository branch if specified ref does not
33-
# exist. If this is set to true, then fetch-depth should be 0
34-
# Default: true
35-
default-ref-on-error: ''
32+
# Indicates whether to checkout the default repository branch if the requested ref
33+
# does not exist
34+
# Default: false
35+
default-branch-checkout: ''
3636

3737
# Personal access token (PAT) used to fetch the repository. The PAT is configured
3838
# with the local git config, which enables your scripts to run authenticated git

action.yml

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,9 @@ inputs:
99
The branch, tag or SHA to checkout. When checking out the repository that
1010
triggered a workflow, this defaults to the reference or SHA for that
1111
event. Otherwise, uses the default branch.
12-
default-ref-on-error:
13-
description: >
14-
Whether to checkout the default repository branch if specified ref does not exist.
15-
If this is set to true, then fetch-depth should be 0
16-
default: true
12+
default-branch-checkout:
13+
description: 'Indicates whether to checkout the default repository branch if the requested ref does not exist'
14+
default: false
1715
token:
1816
description: >
1917
Personal access token (PAT) used to fetch the repository. The PAT is configured

dist/index.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1741,7 +1741,8 @@ function getInputs() {
17411741
core.debug(`commit = '${result.commit}'`);
17421742
// Default branch checkout
17431743
result.defaultBranchCheckout =
1744-
(core.getInput('default-branch-checkout') || 'true').toUpperCase() === 'TRUE';
1744+
(core.getInput('default-branch-checkout') || 'true').toUpperCase() ===
1745+
'TRUE';
17451746
core.debug(`default-branch-checkout = '${result.defaultBranchCheckout}'`);
17461747
// Clean
17471748
result.clean = (core.getInput('clean') || 'true').toUpperCase() === 'TRUE';

0 commit comments

Comments
 (0)