merge-branch
merge-branch copied to clipboard
check merged branch
Check merged branch
Assign label to pull request merged in another branch.
Run workflow on staging branch, this workflow check if the GITHUB_SHA
have a pull request, and assign the label 'merged-in-staging' and create a check-run in the merged commit.
name: Set label on merged branch
on:
push:
branches:
- 'staging'
jobs:
merge-branch:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
- name: check merge in staging
uses: devmasx/[email protected]
with:
type: 'merged-label'
label_name: merged-in-staging
github_token: ${{ github.token }}