Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

check merged branch #10

Open
wants to merge 7 commits into
base: master
Choose a base branch
from
Open

check merged branch #10

wants to merge 7 commits into from

Conversation

MiguelSavignano
Copy link
Member

@MiguelSavignano MiguelSavignano commented Dec 5, 2020

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

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

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

@MiguelSavignano MiguelSavignano added the enhancement New feature or request label Dec 6, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant