fix issues with cancelling jobs (#742)

This commit is contained in:
mikolajbrzezinski 2023-02-23 17:13:44 +01:00 committed by GitHub
parent ca5246099b
commit bcd1a96a82
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -147,7 +147,7 @@ jobs:
runs-on: ubuntu-latest runs-on: ubuntu-latest
needs: [veracode, build_and_test, all_tests_matrix] needs: [veracode, build_and_test, all_tests_matrix]
if: > if: >
!failure() && !(failure() || cancelled()) &&
contains(github.event.head_commit.message, '[release]') && contains(github.event.head_commit.message, '[release]') &&
github.event_name != 'pull_request' && github.event_name != 'pull_request' &&
(github.ref_name == 'master' || startsWith(github.ref_name, 'SP/') || startsWith(github.ref_name, 'HF/')) (github.ref_name == 'master' || startsWith(github.ref_name, 'SP/') || startsWith(github.ref_name, 'HF/'))