Skip to content

Execute a step only if pull_request is merged #26817

Answered by pkumarch
pkumarch asked this question in Actions
Discussion options

You must be logged in to vote

I was able to resolve it by adding ‘closed’ to the types list

on: 
  push:
  pull_request:
    branches:
      - main
      - release/**
    types: [opened, synchronize, reopened, closed]

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
1 participant