Skip to content

Commit 6c5a3f6

Browse files
georgiy-belyaninTotktonada
authored andcommitted
ci: use TarantoolBot for backporting
This patch makes backport workflow use TarantoolBot for creating backport PRs and leaving comments. After merging tarantool#11040 with `backport/3.3` label the backport PR tarantool#11041 didn't fire CI. Turns out that workflows can't be triggered by the GitHub actions bot [^1]. This patch makes the action use TarantoolBot for creating PRs to start CI automatically. Also, the comments on backporting are now made by TarantoolBot too just for consistency. [^1] https://github.com/orgs/community/discussions/25786 NO_DOC=ci only, no new API NO_CHANGELOG=ci NO_TEST=ci
1 parent b24328c commit 6c5a3f6

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

.github/workflows/backport.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@ jobs:
4343
uses: actions/github-script@v7
4444
with:
4545
result-encoding: string
46+
github-token: ${{ secrets.PUBLIC_BACKPORT_ACTION_TOKEN }}
4647
script: |
4748
const perms = ['none', 'read', 'write', 'admin']
4849
const response =
@@ -91,6 +92,7 @@ jobs:
9192
name: Create backport pull requests
9293
uses: korthout/backport-action@v3
9394
with:
95+
github_token: ${{ secrets.PUBLIC_BACKPORT_ACTION_TOKEN }}
9496
branch_name: backport/${target_branch}/${pull_number}
9597
target_branches: ${{ steps.setup.outputs.result }}
9698
label_pattern: ''
@@ -105,6 +107,7 @@ jobs:
105107
env:
106108
CREATED_PULL_NUMBERS: ${{ steps.backport.outputs.created_pull_numbers }}
107109
with:
110+
github-token: ${{ secrets.PUBLIC_BACKPORT_ACTION_TOKEN }}
108111
script: |
109112
let tags = await github.paginate(github.rest.repos.listTags.endpoint.merge({
110113
owner: context.repo.owner,

0 commit comments

Comments
 (0)