Skip to content

Commit 7706f7a

Browse files
committed
Ensure main is used on push.
When inputs are not mandatory in GitHub Actions, the default value is only used if the calling action does not specify the input. Otherwise, the input is defined with a falsey value. Currently, the i18n Update Action is always passing the value if `inputs.base_branch`. But when the workflow runs on `push` events, this results in an the called workflow setting `base_branch` to an empty value.
1 parent 9f7d489 commit 7706f7a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.github/workflows/i18n-update.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,6 @@ jobs:
1919
call-i18n-update:
2020
uses: newfold-labs/workflows/.github/workflows/i18n-update.yml@main
2121
with:
22-
base_branch: ${{ inputs.base_branch }}
22+
base_branch: ${{ inputs.base_branch || 'main' }}
2323
secrets:
2424
NEWFOLD_ACCESS_TOKEN: ${{ secrets.NEWFOLD_ACCESS_TOKEN }}

0 commit comments

Comments
 (0)