Skip to content

Commit f86ca3d

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

File tree

1 file changed

+3
-7
lines changed

1 file changed

+3
-7
lines changed

.github/workflows/build.yml

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,11 @@
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:
149

1510
# Must set Settings -> Actions -> General -> Workflow permissions to
1611
# "Read and write permissions"
@@ -20,6 +15,7 @@ permissions:
2015
jobs:
2116
build:
2217
runs-on: ubuntu-latest
18+
if: github.event_name == 'push' || github.event.pull_request.head.repo.full_name != github.repository
2319

2420
strategy:
2521
fail-fast: false

0 commit comments

Comments
 (0)