Skip to content

Latest commit

 

History

History
37 lines (27 loc) · 675 Bytes

README.md

File metadata and controls

37 lines (27 loc) · 675 Bytes

Check Merged

Check if it has been merged.

Demo

Usage:

The action works only with pull_request event.

Inputs

  • token - The GITHUB_TOKEN secret.
  • originBranch - Origin branch. (default: staging)
  • title - Error message. (default: # :anger: Not merged!)

Example

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 }}