Create 5vQQRqC9oiEDBxxj1FsXBmTdspigagh4J4uRLTskHomh #1749
Workflow file for this run
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_target: | |
push: | |
branches: | |
- main | |
types: | |
- opened | |
- synchronized | |
- reopened | |
- edited | |
- labeled | |
- unlabeled | |
- ready_for_review | |
jobs: | |
auto-merge: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v2 | |
with: | |
ref: ${{ github.event.pull_request.head.sha }} | |
- uses: actions/setup-node@v1 | |
with: | |
node-version: 12 | |
- run: yarn | |
- run: yarn test | |
- name: Get changes | |
id: git_diff | |
uses: swmd/[email protected] | |
with: | |
github-token: ${{ secrets.GITHUB_TOKEN }} | |
- uses: actions-ecosystem/action-add-labels@v1 | |
if: ${{ steps.git_diff.outputs.valid == 'VALID' }} | |
with: | |
labels: automerge | |
- name: Merge pull request | |
if: ${{ steps.git_diff.outputs.valid == 'VALID' }} | |
uses: 'pascalgn/[email protected]' | |
env: | |
GITHUB_TOKEN: '${{ secrets.GITHUB_TOKEN }}' |