Skip to content

Commit fae08fe

Browse files
authored
Merge pull request #45 from pytest-dev/avoid-duplicate-actions/1/dev
Skip duplicate actions when pushing in this repository
2 parents 3799e04 + 0e0ce0c commit fae08fe

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

.github/workflows/tests.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,10 @@ on:
77
jobs:
88
build:
99
runs-on: ubuntu-latest
10+
# https://wildwolf.name/github-actions-how-to-avoid-running-the-same-workflow-multiple-times/
11+
if: >
12+
github.event_name != 'pull_request'
13+
|| github.event.pull_request.head.repo.full_name != github.event.pull_request.base.repo.full_name
1014
strategy:
1115
matrix:
1216
# Not all Python versions are available for linux AND x64

0 commit comments

Comments
 (0)