mirror of
https://github.com/harivansh-afk/nix.git
synced 2026-04-15 08:03:44 +00:00
21 lines
475 B
YAML
21 lines
475 B
YAML
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 }}
|