Skip to content

Commit e562482

Browse files
committed
use chained workflows
1 parent bfe5067 commit e562482

File tree

2 files changed

+6
-5
lines changed

2 files changed

+6
-5
lines changed

.github/workflows/build.yml

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,15 @@
11
name: Build Package
22

33
on:
4-
push:
5-
branches: [ "master", "feature/cli-installer-v2" ] # should change once we have a stable branch
6-
pull_request:
7-
branches: [ "master", "feature/cli-installer-v2" ]
4+
workflow_run:
5+
workflows: [Run Tests]
6+
types:
7+
- completed
88

99
jobs:
1010
build:
1111
runs-on: ubuntu-latest # Choose an appropriate runner
12+
if: ${{ github.event.workflow_run.conclusion == 'success' }}
1213
steps:
1314
- uses: actions/checkout@v3
1415

.github/workflows/tests.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Tests
1+
name: Run Tests
22

33
on: [push]
44

0 commit comments

Comments
 (0)