Skip to content

Commit 4212eab

Browse files
committed
chore: added summary job to build-ci action
so that we have a job that can be referenced e.g. for required actions (matrix jobs can't be referenced by name, because the name is dynamically generated)
1 parent 31bfb8f commit 4212eab

1 file changed

Lines changed: 14 additions & 2 deletions

File tree

.github/workflows/build_ci.yml

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,19 @@ jobs:
8585
verbose: true
8686
env:
8787
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
88+
build-ci-complete:
89+
name: Build CI Complete
90+
needs: build-ci
91+
runs-on: ubuntu-latest
92+
if: always()
93+
steps:
94+
- name: Check build-ci matrix result
95+
run: |
96+
if [ "${{ needs.build-ci.result }}" != "success" ]; then
97+
echo "Some build-ci matrix jobs failed!"
98+
exit 1
99+
fi
100+
echo "All build-ci matrix jobs passed!"
88101
- name: Teams webhook
89102
if: failure() && github.event_name == 'schedule'
90103
run: |
@@ -114,8 +127,7 @@ jobs:
114127
{
115128
"type": "FactSet",
116129
"facts": [
117-
{ "title": "Branch", "value": "${{ matrix.target }}" },
118-
{ "title": "OS", "value": "${{ matrix.os }}" },
130+
{ "title": "Result", "value": "${{ needs.build-ci.result }}" },
119131
{ "title": "Commit", "value": "${{ github.sha }}" }
120132
]
121133
}

0 commit comments

Comments
 (0)