Showing results for 
Search instead for 
Did you mean: 
Ground Controller Lvl 1
Message 1 of 1

pull_request action does not run on merge

I upgraded to the new GitHub Actions released last week with the YAML syntax. My action -- which uses `on: pull_request` -- no longer seems to run when a Pull Request is merged. Previously, this would trigger a run with the payload's `.action` equal to `closed`, which is exactly what I want. After the upgrade, it just doesn't run.


Note that if I manually close the Pull Request without merging, the action fires as expected.


Is this By Design? Should I switch to using the branch `close` event type? That would be a bit unfortunate given that I'd now need to duplicate some workflow logic, but certainly seems like a workaround at the very lease.


Thanks. Full workflow below:



name: Pulumify
on: pull_request
    name: Update Live Preview
    runs-on: ubuntu-latest
      - uses: actions/checkout@master
         if: github.event.action != 'closed'
            ref: ${{ github.event.pull_request.head.ref }}
            fetch-depth: 1
      - uses: pulumi/actions-pulumify@master