mirror of
https://github.com/harivansh-afk/nix.git
synced 2026-04-15 04:03:30 +00:00
add auto-merge workflow for all PRs (#24)
This commit is contained in:
parent
ae12ade633
commit
8b04787d62
1 changed files with 21 additions and 0 deletions
21
.github/workflows/auto-merge.yml
vendored
Normal file
21
.github/workflows/auto-merge.yml
vendored
Normal file
|
|
@ -0,0 +1,21 @@
|
|||
name: auto-merge
|
||||
|
||||
on:
|
||||
pull_request:
|
||||
types: [opened, synchronize, reopened]
|
||||
branches: [main]
|
||||
|
||||
permissions:
|
||||
contents: write
|
||||
pull-requests: write
|
||||
|
||||
jobs:
|
||||
enable-auto-merge:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Enable auto-merge
|
||||
run: gh pr merge --auto --squash "$PR_NUMBER"
|
||||
env:
|
||||
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
GH_REPO: ${{ github.repository }}
|
||||
PR_NUMBER: ${{ github.event.pull_request.number }}
|
||||
Loading…
Add table
Add a link
Reference in a new issue