From f1db0dc24a5c049c7d8b65902fd4bf966c3cd11d Mon Sep 17 00:00:00 2001 From: pmacius Date: Wed, 18 Sep 2024 09:27:43 +0200 Subject: [PATCH] run only ec2 after labeling --- .github/workflows/enteprise.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/enteprise.yml b/.github/workflows/enteprise.yml index fac19a3d2..12d67926d 100644 --- a/.github/workflows/enteprise.yml +++ b/.github/workflows/enteprise.yml @@ -31,6 +31,7 @@ concurrency: jobs: check-nexus-secrets: name: Ensure required nexus secrets are available + if: github.event_name != 'label' runs-on: ubuntu-latest outputs: secrets-available: ${{ steps.check-secrets.outputs.secrets-available }} @@ -48,7 +49,7 @@ jobs: name: Test ${{ matrix.role.name }} role on ${{ matrix.molecule_distro.image }} runs-on: ubuntu-latest needs: check-nexus-secrets - if: needs.check-nexus-secrets.outputs.secrets-available == 'true' + if: needs.check-nexus-secrets.outputs.secrets-available == 'true' && github.event_name != 'label' outputs: dtas_version: ${{ steps.jobvars.outputs.dtas_version }} strategy: @@ -103,6 +104,7 @@ jobs: docker_integration: name: Test ${{ matrix.scenario.name }} scenario on ${{ matrix.molecule_distro.image }} + if: github.event_name != 'label' needs: - docker strategy: @@ -145,8 +147,6 @@ jobs: ec2: name: ${{ matrix.molecule_scenario.desc }} if: github.actor != 'dependabot[bot]' && (contains(github.event.pull_request.labels.*.name, 'ec2-test') || github.ref_name == 'master') - needs: - - docker_integration runs-on: ubuntu-latest strategy: fail-fast: false