auto build sealer ClusterImage using github action #79
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: Auto approve and merge | |
on: | |
issue_comment: | |
types: | |
- created | |
jobs: | |
approve: | |
name: auto approve using /LGTM | |
if: ${{ github.event.comment.body == '/LGTM' }} | |
runs-on: ubuntu-latest | |
permissions: | |
issues: write | |
steps: | |
- name: Approve Pull Request | |
uses: juliangruber/approve-pull-request-action@v1 | |
with: | |
github-token: ${{ secrets.GITHUB_TOKEN }} | |
number: 1 | |
merge: | |
name: auto merge using /merge | |
if: ${{ github.event.comment.body == '/merge' }} | |
runs-on: ubuntu-latest | |
permissions: | |
issues: write | |
steps: | |
- name: auto merge | |
uses: juliangruber/approve-pull-request-action@v1 | |
with: | |
github-token: ${{ secrets.GITHUB_TOKEN }} | |
number: 1 |