From df3f5cb7bedcaa849edfe5cb83153b95023931c0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C5=82=20Kalke?= <56382792+MichalKalke@users.noreply.github.com> Date: Tue, 12 Nov 2024 09:24:50 +0100 Subject: [PATCH] Trigger btp integration test only by create-release workflow (#235) Co-authored-by: Marcin Dobrochowski <39153236+anoipm@users.noreply.github.com> --- .github/workflows/_integration-tests.yaml | 7 ++++++- .github/workflows/create-release.yaml | 1 + 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/.github/workflows/_integration-tests.yaml b/.github/workflows/_integration-tests.yaml index 2415632..10acb03 100644 --- a/.github/workflows/_integration-tests.yaml +++ b/.github/workflows/_integration-tests.yaml @@ -7,6 +7,11 @@ on: description: 'The image to test' required: true type: string + trigger_btp: + description: 'Trigger BTP integration test' + required: false + type: boolean + default: false jobs: @@ -58,7 +63,7 @@ jobs: GARDENER_SA_PATH: /tmp/gardener-sa.yaml btp-integration-tests: - if: ${{ !startsWith(github.event_name, 'pull_request') }} + if: ${{ inputs.trigger_btp }} runs-on: ubuntu-latest defaults: run: diff --git a/.github/workflows/create-release.yaml b/.github/workflows/create-release.yaml index f2aa4a4..51099e8 100644 --- a/.github/workflows/create-release.yaml +++ b/.github/workflows/create-release.yaml @@ -130,6 +130,7 @@ jobs: uses: ./.github/workflows/_integration-tests.yaml with: image: europe-docker.pkg.dev/kyma-project/prod/dockerregistry-operator:${{ github.event.inputs.name }} + trigger_btp: true publish-release: name: Publish release