Skip to content

Commit ce272c9

Browse files
committed
fix!: add input defaults
Breaking change: token is now retrieved regardless of what the user enters. This should cause no issues, but it's better if it goes as a major bump
1 parent 7af2f79 commit ce272c9

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

action.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,11 @@ inputs:
66
diff-search:
77
description: Whether to search the bump commit using diffs (recommended ONLY if not using standard 'npm version' commits)
88
required: false
9+
default: 'false'
910
file-name:
1011
description: A custom path to the package.json file
1112
required: false
13+
default: 'package.json'
1214
file-url:
1315
description: A URL to use to fetch the package file, instead of loading the local file
1416
required: false
@@ -21,6 +23,7 @@ inputs:
2123
token:
2224
description: A GitHub token to use when running on private repos
2325
required: false
26+
default: ${{ github.token }}
2427

2528
outputs:
2629
changed:

lib/index.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)