Skip to content

Commit

Permalink
Merge pull request #735 from lean-ja/auto-merge
Browse files Browse the repository at this point in the history
自動マージPRを作成する
  • Loading branch information
github-actions[bot] authored Aug 31, 2024
2 parents 1d273f1 + 3380fd2 commit e08f62f
Showing 1 changed file with 26 additions and 0 deletions.
26 changes: 26 additions & 0 deletions .github/workflows/auto_merge.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: auto merge PR

on:
pull_request:
branches:
- main
workflow_dispatch:

permissions:
pull-requests: write
contents: write

jobs:
auto_merge:
runs-on: ubuntu-latest
# 自分が作成したPRでのみ有効化する
if: ${{ github.actor == 'Seasawher' }}
env:
PR_URL: ${{github.event.pull_request.html_url}}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Merge PR
run: |
gh pr merge --merge --auto "$PR_URL"

0 comments on commit e08f62f

Please sign in to comment.