From ba07b502e0de171e9e4a2ff60887f6db320a7904 Mon Sep 17 00:00:00 2001 From: "Bernd.Rederlechner@t-systems.com" Date: Thu, 20 Jul 2023 19:21:31 +0200 Subject: [PATCH] Fix undefined test --- .github/workflows/nmc-custom-assembly.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/nmc-custom-assembly.yml b/.github/workflows/nmc-custom-assembly.yml index 3f62e2b..f193276 100644 --- a/.github/workflows/nmc-custom-assembly.yml +++ b/.github/workflows/nmc-custom-assembly.yml @@ -137,7 +137,7 @@ jobs: ( port.headRefName.startsWith( 'backport' )) && ( port.headRefName.includes( trunk.headRefName ))); }); - return (backport != undefined) ? backport : trunk; + return (backport !== undefined) ? backport : trunk; } var nonUniqueBuildParts = trunkparts.map(backportForTrunk).concat(backports); @@ -179,7 +179,7 @@ jobs: - name: Checkout build repo id: checkout - if: ${{ success() || failure() && steps.checkmergeable.outcome == 'failure' }} + if: ${{ success() || failure() && steps.checkmergeable.outcome == 'failure' }} uses: actions/checkout@v3 with: repository: ${{ env.CUSTOM_REPO }} @@ -190,7 +190,7 @@ jobs: # this works also with TARGET_STABLE as a branch OR tag - name: Prepare trunk build branch id: createcustombranch - if: ${{ success() || failure() && steps.checkout.outcome == 'success' }} + if: ${{ success() || failure() && steps.checkout.outcome == 'success' }} run: | if git ls-remote --exit-code --heads origin "$CUSTOM_BRANCH" >/dev/null 2>&1; then # make sure that customisation output branch is fresh @@ -330,6 +330,6 @@ jobs: ### PUSH result (optional) - name: Push '${{ env.CUSTOM_BRANCH }}' id: pushcustomisation - if: ${{ success() || failure() && steps.createcustombranch.outcome == 'success' }} + if: ${{ success() || failure() && steps.createcustombranch.outcome == 'success' }} run: | git push origin $CUSTOM_BRANCH