Skip to content

Commit

Permalink
Workflow for Approval Bot Dispatch (#20376)
Browse files Browse the repository at this point in the history
  • Loading branch information
git-phu authored Dec 12, 2022
1 parent 529b589 commit 3c8bb42
Showing 1 changed file with 36 additions and 0 deletions.
36 changes: 36 additions & 0 deletions .github/workflows/approve-and-merge-dispatch.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
name: Approve and Merge Command Dispatch
on:
issue_comment:
types: [created]
jobs:
approveAndMergeDispatch:
runs-on: ubuntu-latest
steps:
- name: Checkout Airbyte
uses: actions/checkout@v3
- name: Check PAT rate limits
run: |
./tools/bin/find_non_rate_limited_PAT \
${{ secrets.AIRBYTEIO_PAT }} \
${{ secrets.OCTAVIA_GITHUB_RUNNER_TOKEN }} \
${{ secrets.SUPERTOPHER_PAT }}
- name: Auto Approve Slash Command Dispatch
uses: peter-evans/slash-command-dispatch@v3
id: scd
with:
token: ${{ env.PAT }}
permission: write
issue-type: pull-request
repository: airbytehq/airbyte-cloud
dispatch-type: repository
commands: |
approve-and-merge
- name: Edit comment with error message
if: steps.scd.outputs.error-message
uses: peter-evans/create-or-update-comment@v1
with:
comment-id: ${{ github.event.comment.id }}
body: |
> Error: ${{ steps.scd.outputs.error-message }}

0 comments on commit 3c8bb42

Please sign in to comment.