actions: Automatically remove merged branches

This commit is contained in:
Owain van Brakel
2019-10-01 20:55:15 +02:00
parent e03843a985
commit cdb69f3d40

View File

@@ -79,12 +79,24 @@ jobs:
merge:
name: Merge
needs: approve
needs: [build, test, checkstyle, approve]
runs-on: ubuntu-latest
steps:
- name: Merge pull request
if: github.event_name == 'pull_request' && github.actor == 'OpenOSRS'
uses: managedkaos/merge-pull-request@master
with:
github-token: "${{ secrets.GITHUB_TOKEN }}"
cleanup:
name: Cleanup
needs: [build, test, checkstyle, approve, merge]
runs-on: ubuntu-latest
steps:
- name: Remove merged branch
if: github.event_name == 'pull_request' && github.actor == 'OpenOSRS'
uses: jessfraz/branch-cleanup-action@master
with:
github-token: "${{ secrets.GITHUB_TOKEN }}"