Build: Set job fail status if some build failed (#488)

This commit is contained in:
Danil Titarenko 2022-08-30 14:33:23 +03:00 committed by GitHub
parent 207bd5dac7
commit 3626f8cc6c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 6 deletions

View file

@ -15,12 +15,11 @@ jobs:
build: build:
name: "Build image: DocumentServer${{ matrix.edition }}" name: "Build image: DocumentServer${{ matrix.edition }}"
runs-on: ubuntu-latest runs-on: ubuntu-latest
continue-on-error: ${{ matrix.condition }}
strategy: strategy:
fail-fast: false
matrix: matrix:
images: ["documentserver"] images: ["documentserver"]
edition: ["", "-ee", "-de"] edition: ["", "-ee", "-de"]
condition: [true]
steps: steps:
- name: Checkout code - name: Checkout code
uses: actions/checkout@v3 uses: actions/checkout@v3

View file

@ -14,12 +14,11 @@ jobs:
build: build:
name: "Release image: DocumentServer${{ matrix.edition }}" name: "Release image: DocumentServer${{ matrix.edition }}"
runs-on: ubuntu-latest runs-on: ubuntu-latest
continue-on-error: ${{ matrix.condition }}
strategy: strategy:
fail-fast: false
matrix: matrix:
images: ["documentserver-stable"] images: ["documentserver-stable"]
edition: ["", "-ee", "-de"] edition: ["", "-ee", "-de"]
condition: [true]
steps: steps:
- name: Checkout code - name: Checkout code
uses: actions/checkout@v3 uses: actions/checkout@v3
@ -70,12 +69,12 @@ jobs:
name: "Release image: DocumentServer${{ matrix.edition }}-nonExample" name: "Release image: DocumentServer${{ matrix.edition }}-nonExample"
runs-on: ubuntu-latest runs-on: ubuntu-latest
needs: [build] needs: [build]
continue-on-error: ${{ matrix.condition }} if: always()
strategy: strategy:
fail-fast: false
matrix: matrix:
images: ["documentserver-nonexample"] images: ["documentserver-nonexample"]
edition: ["", "-ee", "-de"] edition: ["", "-ee", "-de"]
condition: [true]
steps: steps:
- name: Checkout code - name: Checkout code
uses: actions/checkout@v3 uses: actions/checkout@v3