Skip to content

Commit ddd1d1b

Browse files
committed
Fixes
1 parent 6a5e8f6 commit ddd1d1b

File tree

1 file changed

+19
-3
lines changed

1 file changed

+19
-3
lines changed

.github/workflows/release-binaries-windows.yml

Lines changed: 19 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
name: Release Binaries Windows
22

33
on:
4-
pull_request:
54
workflow_dispatch:
65
inputs:
76
release-version:
@@ -12,11 +11,28 @@ on:
1211
description: 'Upload binaries to the release page'
1312
required: true
1413
default: false
14+
# Run on pull_requests for testing purposes.
15+
pull_request:
16+
paths:
17+
- '.github/workflows/release-binaries-windows.yml'
18+
- '.github/workflows/upload-release-artifact/action.yml'
19+
types:
20+
- opened
21+
- synchronize
22+
- reopened
23+
# When a PR is closed, we still start this workflow, but then skip
24+
# all the jobs, which makes it effectively a no-op. The reason to
25+
# do this is that it allows us to take advantage of concurrency groups
26+
# to cancel in progress CI jobs whenever the PR is closed.
27+
- closed
28+
29+
concurrency:
30+
group: ${{ github.workflow }}-${{ inputs.release-version || github.event.pull_request.number }}
31+
cancel-in-progress: True
1532

1633

1734
permissions:
18-
id-token: write
19-
attestations: write
35+
contents: read
2036

2137
jobs:
2238
build-windows-release:

0 commit comments

Comments
 (0)