[Refactor] Refactor SDRS protections group #169
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: automerge | |
on: | |
pull_request: | |
types: | |
- labeled | |
- unlabeled | |
- synchronize | |
- opened | |
- edited | |
- ready_for_review | |
- reopened | |
- unlocked | |
pull_request_review: | |
types: | |
- submitted | |
check_suite: | |
types: | |
- completed | |
status: {} | |
jobs: | |
automerge: | |
runs-on: ubuntu-latest | |
if: > | |
contains(github.event.pull_request.labels.*.name, 'gate') | |
environment: github | |
steps: | |
- name: Create GitHub App Token | |
id: app-token | |
uses: actions/create-github-app-token@v1 | |
with: | |
app-id: ${{ secrets.APP_ID }} | |
private-key: ${{ secrets.APP_KEY }} | |
- id: automerge | |
name: automerge | |
uses: pascalgn/[email protected] | |
env: | |
GITHUB_TOKEN: ${{ steps.app-token.outputs.token }} | |
MERGE_LABELS: "gate" | |
MERGE_METHOD: "squash" |