Skip to content

Commit 9816a83

Browse files
committed
ci: test github action multiple job
1 parent ceabdaa commit 9816a83

File tree

2 files changed

+10
-3
lines changed

2 files changed

+10
-3
lines changed

.github/workflows/multiplejob.yml

+6-3
Original file line numberDiff line numberDiff line change
@@ -10,16 +10,19 @@ jobs:
1010
uses: ./.github/workflows/executeGradleTask.yml
1111
with:
1212
task-name: test1
13-
secrets: inherit
1413

1514
job2:
1615
uses: ./.github/workflows/executeGradleTask.yml
1716
with:
1817
task-name: test2
19-
secrets: inherit
2018

2119
job3:
2220
uses: ./.github/workflows/executeGradleTask.yml
2321
with:
2422
task-name: test3
25-
secrets: inherit
23+
24+
job4:
25+
uses: ./.github/workflows/executeGradleTask.yml
26+
with:
27+
task-name: test4
28+
needs: [job1]

build.gradle.kts

+4
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,10 @@ tasks.register("test3") {
7878
println("hi test3")
7979
}
8080

81+
tasks.register("test4") {
82+
println("hi test4")
83+
}
84+
8185
allOpen {
8286
annotation("jakarta.persistence.Entity")
8387
}

0 commit comments

Comments
 (0)