From d48465132080d140399c3c73d286d7bfd6ee4670 Mon Sep 17 00:00:00 2001 From: Matthias Bertschy Date: Thu, 14 Sep 2023 07:32:56 +0200 Subject: [PATCH] add a force option to run anywhere Signed-off-by: Matthias Bertschy --- .github/workflows/incluster-comp-pr-merged.yaml | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/.github/workflows/incluster-comp-pr-merged.yaml b/.github/workflows/incluster-comp-pr-merged.yaml index 5c209e3..27b2526 100644 --- a/.github/workflows/incluster-comp-pr-merged.yaml +++ b/.github/workflows/incluster-comp-pr-merged.yaml @@ -52,10 +52,14 @@ on: default: master type: string description: 'system tests branch' + FORCE: + required: false + default: false + type: boolean jobs: docker-build: - if: ${{ (contains(github.event.pull_request.labels.*.name, 'release') || contains( github.event.pull_request.labels.*.name, 'trigger-integration-test')) && github.repository_owner == 'kubescape' }} + if: ${{ ((contains(github.event.pull_request.labels.*.name, 'release') || contains( github.event.pull_request.labels.*.name, 'trigger-integration-test')) && github.repository_owner == 'kubescape') || inputs.FORCE }} runs-on: ubuntu-latest outputs: IMAGE_TAG_PRERELEASE: ${{ steps.image-prerelease-tag.outputs.IMAGE_TAG_PRERELEASE }} @@ -257,4 +261,3 @@ jobs: ref: dev token: ${{ secrets.GH_PERSONAL_ACCESS_TOKEN }} inputs: '{"IMAGE_TAG":"${{ inputs.IMAGE_TAG }}","COMPONENT_NAME":"${{ inputs.COMPONENT_NAME }}","HELM_E2E_TEST":"${{ inputs.HELM_E2E_TEST }}","CHANGE_TAG":"true"}' - \ No newline at end of file