Skip to content

Commit 974cb60

Browse files
committed
make build latest release action run only when a release action is completed
1 parent 967e436 commit 974cb60

File tree

1 file changed

+5
-26
lines changed

1 file changed

+5
-26
lines changed

.github/workflows/build-latest-release.yml

+5-26
Original file line numberDiff line numberDiff line change
@@ -1,35 +1,14 @@
11
name: build (latest release)
22

3+
# Only trigger, when the release workflow succeeded
34
on:
4-
push:
5-
paths-ignore:
6-
# specific folder locations
7-
- ".vscode/**"
8-
- "docs/**"
9-
# filetypes
10-
- "**.md"
11-
- "**.rst"
12-
- "**.ipynb"
13-
- "**.cff"
14-
- "**.png"
15-
branches:
16-
- main
17-
pull_request:
18-
types: [opened, synchronize, reopened, ready_for_review]
19-
paths-ignore:
20-
# specific folder locations
21-
- ".vscode/**"
22-
- "docs/**"
23-
# filetypes
24-
- "**.md"
25-
- "**.rst"
26-
- "**.ipynb"
27-
- "**.cff"
28-
- "**.png"
5+
workflow_run:
6+
workflows: ["Build and upload to PyPI"]
7+
types:
8+
- completed
299

3010
jobs:
3111
build:
32-
if: github.event.pull_request.draft == false
3312
name: Build for (${{ matrix.python-version }}, ${{ matrix.os }})
3413
runs-on: ${{ matrix.os }}
3514

0 commit comments

Comments
 (0)