Skip to content

Commit

Permalink
Trigger btp integration test only by create-release workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
MichalKalke committed Nov 11, 2024
1 parent 88d8d5f commit f8c9a9e
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
7 changes: 6 additions & 1 deletion .github/workflows/_integration-tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down Expand Up @@ -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:
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/create-release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit f8c9a9e

Please sign in to comment.