Skip to content

Commit

Permalink
Api e2e condition fix (#5526)
Browse files Browse the repository at this point in the history
* feat(ci): Condition fix

* feat(ci): Move condition on the top

* feat(ci): check_submodule_token without condition
  • Loading branch information
AliaksandrRyzhou authored and SokratisVidros committed May 13, 2024
1 parent 75ac314 commit 424ed9c
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions .github/workflows/reusable-api-e2e.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,6 @@ on:
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
check_submodule_token:
if: ${{ inputs.ee }}
name: Check if the secret exists or not.
runs-on: ubuntu-latest
outputs:
Expand All @@ -54,7 +53,7 @@ jobs:
# This workflow contains a single job called "build"
e2e_api:
name: Test E2E
# The type of runner that the job will run on
if: ${{ (contains(inputs.job-name, '-ee') && inputs.test-e2e-ee-affected) || (!contains(inputs.job-name, '-ee') && inputs.test-e2e-affected) }}
runs-on: ubuntu-latest
timeout-minutes: 80
environment: ${{ inputs.environment }}
Expand All @@ -64,8 +63,6 @@ jobs:
deployments: write
id-token: write
needs: [check_submodule_token]
if: ${{ (contains(inputs.job-name, '-ee') && inputs.test-e2e-ee-affected) || (!contains(inputs.job-name, '-ee') && inputs.test-e2e-affected) }}
# Steps represent a sequence of tasks that will be executed as part of the job
steps:
# checkout with submodules if token is provided
- uses: actions/checkout@v3
Expand Down

0 comments on commit 424ed9c

Please sign in to comment.