ACS-3750 Fix cancelled workflow condition (#649)

This commit is contained in:
Domenico Sibilio 2023-02-23 16:22:13 +01:00 committed by GitHub
parent 515d23de2c
commit 693fde6285
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -45,7 +45,9 @@ jobs:
name: ${{ matrix.name }}
runs-on: ubuntu-latest
needs: [build]
if: "!contains(github.event.head_commit.message, '[skip tests]')"
if: >
!(failure() || cancelled()) &&
!contains(github.event.head_commit.message, '[skip tests]')
strategy:
fail-fast: false
matrix:
@ -108,7 +110,9 @@ jobs:
name: "Publish artifacts"
runs-on: ubuntu-latest
needs: [tests]
if: github.event_name != 'pull_request'
if: >
!(failure() || cancelled()) &&
github.event_name != 'pull_request'
steps:
- uses: actions/checkout@v3
- uses: Alfresco/alfresco-build-tools/.github/actions/setup-java-build@v1.35.0