Skip to content

Workflow to re-trigger workflow of all open PRs when base updates

Notifications You must be signed in to change notification settings

GeekEast/trigger-open-pr-workflow

Use this GitHub action with your project
Add this Action to an existing workflow or create a new one
View on Marketplace

Repository files navigation

trigger-open-pr-workflow

Inputs

  • token: the user's access token
  • workflow_filename: the workflow file name
name: Dispatch Merge Event

on:
 pull_request:
   branches:
     - main
   types: [closed]


jobs:
  publish-merge-event:
    if: ${{ github.event.pull_request.merged }}
    runs-on: ubuntu-latest
    steps:
      - name: Trigger Open PRs workflow
        uses: GeekEast/trigger-open-pr-workflow@1.0.7
        with:
          token: ${{ secrets.ACCESS_TOKEN }} # genereate a personal token, don't use the default secrets.GTIHUB_TOKEN
          workflow_filename: 'pipeline.yml'

Sample Project

About

Workflow to re-trigger workflow of all open PRs when base updates

Topics

Resources

Stars

Watchers

Forks