Skip to content

Commit 075a980

Browse files
authored
Merge branch 'stype-deps-bump' into all
2 parents 2bcb76a + ecd705a commit 075a980

1 file changed

Lines changed: 7 additions & 1 deletion

File tree

.github/workflows/update-stores.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -191,7 +191,13 @@ jobs:
191191
console.log("Commit to ${{env.KFUTIL_ARG}} for PR")
192192
const owner = context.repo.owner;
193193
const repo = context.repo.repo;
194-
const baseBranch = context.ref.replace('refs/heads/', 'main'); // Default base branch is main
194+
195+
// Get the current branch name that the workflow is running on
196+
const baseBranch = context.payload.ref ?
197+
context.payload.ref.replace('refs/heads/', '') : 'main';
198+
199+
console.log(`Base branch for PR: ${baseBranch}`);
200+
195201
const newBranch = '${{env.KFUTIL_ARG}}';
196202
const response = await github.rest.pulls.create({
197203
owner,

0 commit comments

Comments
 (0)