Skip to content

Commit b167fdb

Browse files
Watson1978kenhys
andauthored
Backport(v6): ci: fix empty base_ref error (#831) (#937)
Backport #831 Backport #830 ## #831 Try to use $Env:GITHUB_REF_NAME which contains branch name github.base_ref is empty when executing via workflow_dispatch. ## #830 When kicked from LTS branch, base branch should be set explicitly, otherwise PR will be created against main branch. --------- Signed-off-by: Kentaro Hayashi <[email protected]> Signed-off-by: Shizuo Fujita <[email protected]> Co-authored-by: Kentaro Hayashi <[email protected]>
1 parent b70b38d commit b167fdb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.github/workflows/maintenance-bundle-update.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,4 +34,4 @@ jobs:
3434
git add fluent-package/Gemfile.lock
3535
git commit --message "Update Gemfile.lock" --signoff
3636
git push origin $branch
37-
gh pr create --title "Update Gemfile.lock" --body "Update Gemfile.lock by maintenance workflow"
37+
gh pr create --base $Env:GITHUB_REF_NAME --title "Update Gemfile.lock" --body "Update Gemfile.lock by maintenance workflow"

0 commit comments

Comments
 (0)