Skip to content

Commit

Permalink
run only ec2 after labeling
Browse files Browse the repository at this point in the history
  • Loading branch information
pmacius committed Sep 18, 2024
1 parent 07d05b3 commit f1db0dc
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/enteprise.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
Expand All @@ -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:
Expand Down Expand Up @@ -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:
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit f1db0dc

Please sign in to comment.