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

This commit is contained in:
Malte Poll 2023-05-03 11:40:09 +02:00 committed by GitHub
parent d7a2ddd939
commit d2cbf3dc83
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

@ -20,7 +20,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..'
@ -234,6 +234,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 }}