automerge #4
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: | |
workflow_run: | |
types: | |
- completed | |
workflows: | |
- 'ci' | |
jobs: | |
automerge: | |
name: Automerge | |
runs-on: ubuntu-latest | |
if: ${{ github.event.workflow_run.conclusion == 'success' && github.actor == 'nsmbot' }} | |
steps: | |
- name: Check out the code | |
uses: actions/checkout@v2 | |
- name: Fetch master | |
run: | | |
git remote -v | |
git fetch --depth=1 origin master | |
- name: Only allow go.mod and go.sum changes | |
run: | | |
find . -type f ! -name 'go.mod' ! -name 'go.sum' ! -name '*.yaml' ! -name '*.yml' ! -name '*.txt' ! -name '*.md' ! -name '*.conf' -exec git diff --exit-code origin/master -- {} + | |
- name: Merge PR | |
uses: ridedott/merge-me-action@master | |
with: | |
GITHUB_LOGIN: nsmbot | |
ENABLED_FOR_MANUAL_CHANGES: true | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |