Skip to content

Commit

Permalink
Aggregate the build results of the Python client in build.yml (#536)
Browse files Browse the repository at this point in the history
  • Loading branch information
aaron-ai committed Jun 7, 2023
1 parent 3404936 commit ef1aea9
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -68,13 +68,19 @@ jobs:
uses: ./.github/workflows/python_build.yml
build-result:
runs-on: ubuntu-latest
needs: [java-build, cpp-build, csharp-build, golang-build, php-build, rust-build]
needs: [java-build, cpp-build, csharp-build, golang-build, php-build, rust-build, python-build]
if: ${{ always() }}
steps:
- uses: actions/checkout@v2
- name: Collect build result
run: |
if echo java-${{ needs.java-build.result }},cpp-${{ needs.cpp-build.result }},csharp-${{ needs.csharp-build.result }},golang-${{ needs.golang-build.result }},php-${{ needs.php-build.result }},rust-${{ needs.rust-build.result }} | grep -E 'cancelled|failure' -o > null
if echo java-${{ needs.java-build.result }},\
cpp-${{ needs.cpp-build.result }},\
csharp-${{ needs.csharp-build.result }},\
golang-${{ needs.golang-build.result }},\
php-${{ needs.php-build.result }},\
rust-${{ needs.rust-build.result }},\
python-${{ needs.python-build.result }} | grep -E 'cancelled|failure' -o > null
then
echo "There are failed/cancelled builds"
exit 1
Expand Down

0 comments on commit ef1aea9

Please sign in to comment.