Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitc217133

Browse files
committed
Prevent repository-internal pull requests from running duplicate tox builds via GitHub Actions; the 'push' event will have already run a build for commits related to them
1 parent12fed91 commitc217133

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

‎.github/workflows/python-tox.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
on:[pull_request, push]
22
jobs:
33
build:
4+
# Prevent duplicate builds for 'internal' pull requests on existing commits
5+
# Credit: https://github.community/t/duplicate-checks-on-push-and-pull-request-simultaneous-event/18012
6+
if:github.event.push || github.event.pull_request.head.repo.full_name != github.repository
47
runs-on:ubuntu-latest
58
steps:
69
-uses:actions/checkout@v2

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp