Skip to content

Commit de9b4a3

Browse files
committed
fix(ci): Generate PR into caller branch for store-type updates.
Signed-off-by: spbsoluble <1661003+spbsoluble@users.noreply.github.com>
1 parent b19462b commit de9b4a3

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

.github/workflows/update-stores.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,8 @@ jobs:
106106
ls -la
107107
ls -la ../
108108
ls -la ../../
109-
cp -f store_types.json ../../cmd/store_types.json
109+
ls -la ../../../
110+
cp -f store_types.json ../../../cmd/store_types.json
110111
env:
111112
GITHUB_TOKEN: ${{ secrets.V2BUILDTOKEN }}
112113

@@ -187,7 +188,7 @@ jobs:
187188
console.log("Commit to ${{env.KFUTIL_ARG}} for PR")
188189
const owner = context.repo.owner;
189190
const repo = context.repo.repo;
190-
const baseBranch = 'main';
191+
const baseBranch = context.ref.replace('refs/heads/', 'main'); // Default base branch is main
191192
const newBranch = '${{env.KFUTIL_ARG}}';
192193
const response = await github.rest.pulls.create({
193194
owner,

0 commit comments

Comments
 (0)