We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 89f3bea commit ce1d210Copy full SHA for ce1d210
1 file changed
.github/workflows/build.yml
@@ -1,19 +1,21 @@
1
name: Build Package
2
3
on:
4
+ workflow_run:
5
+ workflows: ["Tests"]
6
+ types:
7
+ - completed
8
push:
- branches: [main]
9
tags:
10
- 'v*'
- pull_request:
11
workflow_dispatch:
12
13
jobs:
14
build:
15
runs-on: ubuntu-latest
- # Only build if tests workflow passes
16
- # Note: This requires the Tests workflow to complete successfully first
+ # Only build if tests workflow passed (for workflow_run trigger)
17
+ # For tags and manual dispatch, build anyway (tests should be run separately)
18
+ if: ${{ github.event.workflow_run.conclusion == 'success' || github.event_name != 'workflow_run' }}
19
20
steps:
21
- uses: actions/checkout@v4
0 commit comments