Help
cancel
Showing results for 
Search instead for 
Did you mean: 
Copilot Lvl 2
Message 11 of 13

Re: pull_request action does not run on merge

Thanks for fixing this, I've tried it and works as expected

Copilot Lvl 3
Message 12 of 13

Re: pull_request action does not run on merge

Would it make sense to have a PR event of `merged`?

Copilot Lvl 2
Message 13 of 13

Re: pull_request action does not run on merge

Hi,

 

I am using

 

on:
  pull_request:
    types: [closed]

 

for my workflow trigger, without any conditionals, but it is still not triggering when a PR merges. The PR is being merged by a different GitHub Action that merges it using GitHub API with

uses: actions/github-script@0.2.0

 

Could that be a reason it wouldn't trigger?  If I manually merge a PR, it triggers as expected.

 

I've also tried

on: push

where the merge does a push, but same results. A manual merge triggers the workflow based on push, but the merge via API and the github actions bot does not trigger the workflow in question..