From 4c8c3859fdc050e8135953b36a21f98d19e208df Mon Sep 17 00:00:00 2001 From: Marco Carrozzo Date: Thu, 2 Mar 2023 15:20:14 +0100 Subject: [PATCH] HXOR-164 pr check job: condition handling --- .github/workflows/devel.yml | 26 ++++++++++++++++++++++++++ .github/workflows/pull-request.yml | 9 ++++----- 2 files changed, 30 insertions(+), 5 deletions(-) create mode 100644 .github/workflows/devel.yml diff --git a/.github/workflows/devel.yml b/.github/workflows/devel.yml new file mode 100644 index 0000000000..af30a5a034 --- /dev/null +++ b/.github/workflows/devel.yml @@ -0,0 +1,26 @@ +name: pr-workflow + +on: + workflow_call: + inputs: + dry-run-release: + description: 'enable dry-run' + required: false + type: boolean + default: true + devel: + description: 'enable pipeline devel' + required: false + type: boolean + default: true + push: + branches: + - "HXP-164*" + + +jobs: + general-build: + uses: ./.github/workflows/pull-request.yml + secrets: inherit + with: + dry-run-release: true diff --git a/.github/workflows/pull-request.yml b/.github/workflows/pull-request.yml index 1d52b40cf9..99b263acd8 100644 --- a/.github/workflows/pull-request.yml +++ b/.github/workflows/pull-request.yml @@ -398,13 +398,12 @@ jobs: results: if: ${{ always() }} + # if: success() || failure() runs-on: ubuntu-latest name: Final Results needs: [check-if-pr-is-approved, check-package-lock, build-libs, e2e, e2e-storybook] steps: - run: exit 1 - if: >- - ${{ - contains(needs.*.result, 'failure') - || contains(needs.*.result, 'cancelled') - }} + if: ${{ contains(needs.*.result, 'failure') }} + - run: exit 1 + if: ${{ contains(needs.*.result, 'cancelled') }}