File tree Expand file tree Collapse file tree 3 files changed +9
-10
lines changed Expand file tree Collapse file tree 3 files changed +9
-10
lines changed Original file line number Diff line number Diff line change @@ -29,10 +29,10 @@ Please refer to the [release page](https://github.com/actions/checkout/releases/
29
29
# Otherwise, uses the default branch.
30
30
ref : ' '
31
31
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 : ' '
36
36
37
37
# Personal access token (PAT) used to fetch the repository. The PAT is configured
38
38
# with the local git config, which enables your scripts to run authenticated git
Original file line number Diff line number Diff line change 9
9
The branch, tag or SHA to checkout. When checking out the repository that
10
10
triggered a workflow, this defaults to the reference or SHA for that
11
11
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
17
15
token :
18
16
description : >
19
17
Personal access token (PAT) used to fetch the repository. The PAT is configured
Original file line number Diff line number Diff line change @@ -1741,7 +1741,8 @@ function getInputs() {
1741
1741
core.debug(`commit = '${result.commit}'`);
1742
1742
// Default branch checkout
1743
1743
result.defaultBranchCheckout =
1744
- (core.getInput('default-branch-checkout') || 'true').toUpperCase() === 'TRUE';
1744
+ (core.getInput('default-branch-checkout') || 'true').toUpperCase() ===
1745
+ 'TRUE';
1745
1746
core.debug(`default-branch-checkout = '${result.defaultBranchCheckout}'`);
1746
1747
// Clean
1747
1748
result.clean = (core.getInput('clean') || 'true').toUpperCase() === 'TRUE';
You can’t perform that action at this time.
0 commit comments