From fd6eb2139da928848e69767263a5ee5ce006b66c Mon Sep 17 00:00:00 2001 From: Julian Raufelder Date: Tue, 11 Oct 2022 17:45:59 +0200 Subject: [PATCH] Minor cleanup in build.yml --- .github/workflows/build.yml | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index b895f30ff..bb663779c 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -16,8 +16,8 @@ jobs: release-check-precondition: name: Validate pushed commit to release/hotfix branch or pushed tag runs-on: ubuntu-latest - if: "(startsWith(github.ref, 'refs/tags/') || startsWith(github.ref, 'refs/heads/hotfix/') || startsWith(github.ref, 'refs/heads/release/')) && \ - !(contains(github.event.head_commit.message, '[ci skip]') || contains(github.event.head_commit.message, '[skip ci]'))" + if: "(startsWith(github.ref, 'refs/tags/') || startsWith(github.ref, 'refs/heads/hotfix/') || startsWith(github.ref, 'refs/heads/release/')) + && !(contains(github.event.head_commit.message, '[ci skip]') || contains(github.event.head_commit.message, '[skip ci]'))" steps: - uses: actions/checkout@v2 - id: validate-pom-version @@ -48,9 +48,9 @@ jobs: name: Compile and Test needs: release-check-precondition runs-on: ubuntu-latest - if: "always() && \ - (needs.release-check-precondition.result=='success' || needs.release-check-precondition.result=='skipped') && \ - !(contains(github.event.head_commit.message, '[ci skip]') || contains(github.event.head_commit.message, '[skip ci]'))" + if: "always() + && (needs.release-check-precondition.result=='success' || needs.release-check-precondition.result=='skipped') + && !(contains(github.event.head_commit.message, '[ci skip]') || contains(github.event.head_commit.message, '[skip ci]'))" steps: - uses: actions/checkout@v2 - uses: actions/setup-java@v2