interval-timer/.forgejo/workflows/auto-merge.yml
William Brawner 81c9de0268
Some checks failed
Build and Test / build-and-test (pull_request) Successful in 47s
Enable Auto Merge / auto-merge (pull_request) Failing after 1s
Publish Docker image / Push Docker image to GitHub Packages (push) Failing after 3s
Migrate to Forgejo Actions
2024-06-17 21:32:11 -06:00

21 lines
471 B
YAML

name: Enable Auto Merge
on:
pull_request_target:
types:
- opened
- reopened
- edited
branches:
- main
jobs:
auto-merge:
runs-on: ubuntu-latest
if: ${{ github.actor == 'wbrawner' || github.actor == 'dependabot[bot]' }}
steps:
- name: Enable auto-merge
run: gh pr merge --auto --rebase "$PR_URL"
env:
PR_URL: ${{github.event.pull_request.html_url}}
GH_TOKEN: ${{secrets.GH_TOKEN}}