Skip to content

Commit 42ea378

Browse files
authored
Merge pull request #13 from JackSlateur/refact/defaults
refact(default): set defaults in the action.yml file
2 parents 8764467 + 768cda9 commit 42ea378

File tree

2 files changed

+1
-5
lines changed

2 files changed

+1
-5
lines changed

action.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ inputs:
1313
pr-branch:
1414
description: PR branch against which the PR should be created, defaults to main
1515
required: false
16+
default: main
1617
update-path:
1718
description: Path to directory to run the update-command. If not provided defaults to root
1819
required: false

autoupdate-dependencies.sh

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -25,11 +25,6 @@ if [ -z "$update_command" ]; then
2525
exit 1
2626
fi
2727

28-
if [ -z "$pr_branch" ]; then
29-
echo "pr-branch not set, falling back to `main`"
30-
pr_branch="main"
31-
fi
32-
3328
# remove optional params markers
3429
update_path_value=${update_path%?}
3530
if [ -n "$update_path_value" ]; then

0 commit comments

Comments
 (0)