HXOR-164 pr check job: condition handling

This commit is contained in:
Marco Carrozzo
2023-03-02 15:20:14 +01:00
parent 8b9ddb21ba
commit 4c8c3859fd
2 changed files with 30 additions and 5 deletions

26
.github/workflows/devel.yml vendored Normal file
View File

@@ -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

View File

@@ -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') }}