devmasx / merge-branch

A GitHub Action that merge PR branch to other branchs
161 stars 58 forks source link

check merged branch #10

Open MiguelSavignano opened 3 years ago

MiguelSavignano commented 3 years ago

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/merge-branch@v1.3.1
        with:
          type: 'merged-label'
          label_name: merged-in-staging
          github_token: ${{ github.token }}

Screenshot from 2020-12-06 01-51-47

Screenshot from 2020-12-06 01-52-10