diff --git a/.github/workflows/aggregate.yml b/.github/workflows/aggregate.yml new file mode 100644 index 0000000..993041b --- /dev/null +++ b/.github/workflows/aggregate.yml @@ -0,0 +1,16 @@ +name: Aggregate Jobs +on: + pull_request: + +jobs: + job1: + uses: ./.github/workflows/job1.yml + job2: + uses: ./.github/workflows/job2.yml + merge-guard: + name: Wait for all checks to finish + runs-on: ubuntu-latest + needs: [ job1, job2 ] + steps: + - name: job summary + run: exit 1 \ No newline at end of file diff --git a/.github/workflows/job1.yml b/.github/workflows/job1.yml new file mode 100644 index 0000000..20fdb05 --- /dev/null +++ b/.github/workflows/job1.yml @@ -0,0 +1,10 @@ +name: job1 +on: + workflow_call: + +jobs: + job1: + runs-on: ubuntu-latest + steps: + - name: Job1 + run: echo "job1" \ No newline at end of file diff --git a/.github/workflows/job2.yml b/.github/workflows/job2.yml new file mode 100644 index 0000000..362363b --- /dev/null +++ b/.github/workflows/job2.yml @@ -0,0 +1,11 @@ +name: job2 +on: + workflow_call: + +jobs: + job1: + runs-on: ubuntu-latest + steps: + - name: Job2 + run: echo "job2" + \ No newline at end of file