Skip to content

Commit 6d77d1c

Browse files
authored
ci: use the github app "octavia-bot" for slash command dispatch (resolves gh rate limit failures) (airbytehq#61604)
1 parent 766d6a2 commit 6d77d1c

File tree

1 file changed

+12
-1
lines changed

1 file changed

+12
-1
lines changed

.github/workflows/slash-commands.yml

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@ on:
44
types: [created]
55
jobs:
66
slashCommandDispatch:
7+
name: Dispatch
8+
if: startsWith(github.event.comment.body, '/')
79
runs-on: ubuntu-24.04
810
steps:
911
- name: Get PR repo and ref
@@ -14,11 +16,20 @@ jobs:
1416
echo ref="$(echo $pr_info | jq -r '.head.ref')" >> $GITHUB_OUTPUT
1517
echo repo="$(echo $pr_info | jq -r '.head.repo.full_name')" >> $GITHUB_OUTPUT
1618
19+
- name: Authenticate as GitHub App
20+
uses: actions/create-github-app-token@v2
21+
id: get-app-token
22+
with:
23+
owner: "airbytehq"
24+
repositories: "airbyte"
25+
app-id: ${{ secrets.OCTAVIA_BOT_APP_ID }}
26+
private-key: ${{ secrets.OCTAVIA_BOT_PRIVATE_KEY }}
27+
1728
- name: Slash Command Dispatch (Workflow)
1829
id: scd
1930
uses: peter-evans/slash-command-dispatch@v3
2031
with:
21-
token: ${{ secrets.GH_PAT_MAINTENANCE_OCTAVIA }}
32+
token: ${{ steps.get-app-token.outputs.token }}
2233
permission: write
2334
dispatch-type: workflow
2435
issue-type: both

0 commit comments

Comments
 (0)