ci: skip e2e tests if caller was not successful (#1714)

Co-authored-by: Malte Poll <1780588+malt3@users.noreply.github.com>
This commit is contained in:
Paul Meyer 2023-05-03 12:05:00 +02:00 committed by GitHub
parent a5adf459ce
commit 8a77cee919
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 2 deletions

View file

@ -24,7 +24,7 @@ on:
jobs: jobs:
on-failure-quit: on-failure-quit:
runs-on: ubuntu-22.04 runs-on: ubuntu-22.04
if: github.event.workflow_run.conclusion == 'failure' if: github.event.workflow_run.conclusion != 'success'
steps: steps:
- run: | - run: |
echo 'Release workflow failed, exiting..' echo 'Release workflow failed, exiting..'

View file

@ -26,7 +26,7 @@ env:
jobs: jobs:
on-failure-quit: on-failure-quit:
runs-on: ubuntu-22.04 runs-on: ubuntu-22.04
if: github.event.workflow_run.conclusion == 'failure' if: github.event.workflow_run.conclusion != 'success'
steps: steps:
- run: | - run: |
echo 'Release workflow failed, exiting..' echo 'Release workflow failed, exiting..'
@ -218,6 +218,8 @@ jobs:
permissions: permissions:
id-token: write id-token: write
contents: read contents: read
checks: write
packages: write
uses: ./.github/workflows/e2e-upgrade.yml uses: ./.github/workflows/e2e-upgrade.yml
with: with:
fromVersion: ${{ matrix.fromVersion }} fromVersion: ${{ matrix.fromVersion }}