Skip to content

Instantly share code, notes, and snippets.

@miguelmota
Created June 2, 2023 17:47
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save miguelmota/a12702765eab3f45357bc8ad489b81d4 to your computer and use it in GitHub Desktop.
Save miguelmota/a12702765eab3f45357bc8ad489b81d4 to your computer and use it in GitHub Desktop.
Github action run on pull request merge
name: hello-world
on:
pull_request:
types: [closed]
jobs:
my-job:
if: github.event_name == 'pull_request' && github.event.action == 'closed' && github.event.pull_request.merged == true
runs-on: ubuntu-latest
steps:
- name: my-step
run: echo "Hello World!"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment