Skip to content

Commit

Permalink
automerge helper for submodule update
Browse files Browse the repository at this point in the history
  • Loading branch information
delphiactual committed Jun 12, 2024
1 parent 895fd4b commit 63498db
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion .github/workflows/submodule-auto-merge.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,14 @@ jobs:
runs-on: ubuntu-latest
if: "${{github.actor == 'd2ai-bot' && github.event.pull_request.title == 'submodule update: generate-font'}}"
steps:
- uses: actions/create-github-app-token@v1
id: app-token
with:
# required
app-id: ${{ secrets.AUTOMERGE_APP_ID }}
private-key: ${{ secrets.AUTOMERGE_PRIVATE_KEY }}
- name: Enable auto-merge for submodule updates
run: gh pr merge --auto --merge "$PR_URL"
env:
PR_URL: ${{github.event.pull_request.html_url}}
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
GITHUB_TOKEN: ${{ steps.app-token.outputs.token }}

0 comments on commit 63498db

Please sign in to comment.