Skip to content

Commit ad1624e

Browse files
committed
Stop duplicate CI runs on PRs
1 parent 4a5e72c commit ad1624e

File tree

1 file changed

+4
-7
lines changed

1 file changed

+4
-7
lines changed

.github/workflows/build.yml

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,12 @@
11
name: Build and test
22

33
concurrency:
4-
group: w64devkit-${{ github.ref }}
5-
cancel-in-progress: true
4+
group: w64devkit-${{ github.event.pull_request.head.sha || github.sha }}
65

76
on:
8-
pull_request: {}
97
push:
10-
branches:
11-
- '*'
12-
tags:
13-
- '*'
8+
pull_request:
9+
branches: [ "master" ]
1410

1511
# Must set Settings -> Actions -> General -> Workflow permissions to
1612
# "Read and write permissions"
@@ -20,6 +16,7 @@ permissions:
2016
jobs:
2117
build:
2218
runs-on: ubuntu-latest
19+
if: github.event_name == 'push' || github.event.pull_request.head.repo.full_name != github.repository
2320

2421
strategy:
2522
fail-fast: false

0 commit comments

Comments
 (0)