Check if it has been merged.
The action works only with pull_request event.
token
- The GITHUB_TOKEN secret.originBranch
- Origin branch. (default:staging
)title
- Error message. (default:# :anger: Not merged!
)
name: Check merged
on:
pull_request:
branches:
- master
jobs:
check-staging:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 0
- uses: SonicGarden/check-merged-action@v1
with:
token: ${{ secrets.GITHUB_TOKEN }}