Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 2 additions & 8 deletions .github/workflows/auto-merge.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,24 +5,18 @@ on:

jobs:
auto-merge:
runs-on: ${{ vars.RUNNER_SMALL }}
runs-on: ubuntu-slim
if: >
github.event.pull_request.user.login == 'dependabot[bot]' ||
github.event.pull_request.user.login == 'articulate-automation[bot]'
steps:
- uses: actions/create-github-app-token@v3
id: token
with:
client-id: ${{ vars.AUTOMATION_CLIENT_ID }}
private-key: ${{ secrets.AUTOMATION_PRIVATE_KEY }}
- name: Approve PR
env:
# Approve as Botzo to work around CODEOWNERS requirement
GH_TOKEN: ${{ secrets.BOTZO_GH_TOKEN }}
PR: ${{ github.event.pull_request.number }}
run: gh pr review --approve "$PR" -R "$GITHUB_REPOSITORY"
- name: Enable auto-merge
env:
GH_TOKEN: ${{ steps.token.outputs.token }}
GH_TOKEN: ${{ secrets.BOTZO_GH_TOKEN }}
PR: ${{ github.event.pull_request.number }}
run: gh pr merge --auto --squash "$PR" -R "$GITHUB_REPOSITORY"
Loading