Skip to content

Commit 9259d2f

Browse files
committed
[PLUTO-1412] test init
1 parent cff5062 commit 9259d2f

File tree

2 files changed

+13
-3
lines changed

2 files changed

+13
-3
lines changed

.github/workflows/go.yml

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,21 @@
1-
on: push
1+
name: Build and Test
2+
3+
on:
4+
push:
5+
workflow_call:
6+
outputs:
7+
build_status:
8+
description: "Status of the build job"
9+
value: ${{ jobs.build.outputs.status }}
210

311
permissions:
412
contents: write
513

614
jobs:
715
build:
816
runs-on: ubuntu-latest
17+
outputs:
18+
status: ${{ job.status }}
919
steps:
1020
- name: Checkout
1121
uses: actions/checkout@v4

.github/workflows/it-test.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,13 @@ permissions:
55

66
on:
77
workflow_run:
8-
workflows: ["go"]
8+
workflows: ["Build and Test"]
99
types:
1010
- completed
1111

1212
jobs:
1313
test:
14-
if: ${{ github.event.workflow_run.conclusion == 'success' }}
14+
if: ${{ github.event.workflow_run.jobs.*.name == 'build' }}
1515
runs-on: ${{ matrix.os }}
1616
strategy:
1717
matrix:

0 commit comments

Comments
 (0)