Skip to content

Commit cbc1b9e

Browse files
drobnikjfnesveda
andauthored
fix: sync branches (#216)
* fix: sync branches * Apply suggestions from code review Co-authored-by: František Nesveda <[email protected]> --------- Co-authored-by: František Nesveda <[email protected]>
1 parent 8230ca7 commit cbc1b9e

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

.github/workflows/sync_branches.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ jobs:
4949
// Create a new Octokit instance under Apify Service Account
5050
// Apify Service Account does not trigger PR toolkit,
5151
// does not need approval for PRs and does not need to wait for status checks
52-
const octokit = new Octokit({
52+
const serviceAccountOctokit = new Octokit({
5353
auth: process.env.GIT_HUB_TOKEN,
5454
});
5555
@@ -64,7 +64,7 @@ jobs:
6464
}
6565
6666
// Create pull request from headBranch to baseBranch (typically `master` to `develop`)
67-
const createResp = await octokit.rest.pulls.create({
67+
const createResp = await serviceAccountOctokit.rest.pulls.create({
6868
owner: context.repo.owner,
6969
repo: context.repo.repo,
7070
head: headBranch,
@@ -75,7 +75,7 @@ jobs:
7575
const pullRequestNumber = createResp.data.number;
7676
7777
// Merge pull request
78-
await octokit.rest.pulls.merge({
78+
await serviceAccountOctokit.rest.pulls.merge({
7979
owner: context.repo.owner,
8080
repo: context.repo.repo,
8181
pull_number: pullRequestNumber,

0 commit comments

Comments
 (0)