Skip to content
Discussion options

You must be logged in to vote

Try this:

name: CI
on: [ push, pull_request ]
jobs:
  job1:
    if: github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name != github.event.pull_request.base.repo.full_name
    ...

  job2:
    if: github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name != github.event.pull_request.base.repo.full_name
    ...

Found at zopefoundation/meta#145 (comment) and https://wildwolf.name/github-actions-how-to-avoid-running-the-same-workflow-multiple-times/

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by chraebsli
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Actions Build, test, and automate your deployment pipeline with world-class CI/CD Question Ask and answer questions about GitHub features and usage
3 participants