diff --git a/.github/workflows/e2e_be_core.yml b/.github/workflows/e2e_be_core.yml index 7c5626c..8ea3c0b 100644 --- a/.github/workflows/e2e_be_core.yml +++ b/.github/workflows/e2e_be_core.yml @@ -24,29 +24,34 @@ on: default: migration jobs: - e2e_be_core: - name: e2e_be_core + check_pr: + name: check_pr runs-on: biggy container: image: docker://sdptestautomation/e2e:${{ inputs.tag }} credentials: username: ${{ secrets.E2E_DOCKERHUB_USERNAME }} password: ${{ secrets.E2E_DOCKERHUB_PASSWORD }} + outputs: + skip_pr: ${{ steps.check-pr.outputs.SKIP_PR }} steps: - name: Check if it's PR env backend + id: check-pr run: | PR_ENV_REGEX=".*.pr-" if [[ $(expr match "${{ inputs.be_url }}" $PR_ENV_REGEX) != 0 ]]; then - echo 'export SKIP_PR=" and not @skip-pr"' >> $GITHUB_ENV + echo 'SKIP_PR=" and not @skip-pr"' >> $GITHUB_OUTPUT echo "PR env detected - adding @skip-pr tag to skip tests" else - echo 'export SKIP_PR=""' >> $GITHUB_ENV + echo 'SKIP_PR=""' >> $GITHUB_OUTPUT echo "PR env not detected" fi - - name: Run E2E BE - uses: dpc-sdp/github-actions/.github/workflows/run_e2e_be.yml@dev-tim - with: - tags: "(@core) and @regression${SKIP_PR}" - be_url: ${{ inputs.be_url }} - project: ${{ inputs.project }} - browser: ${{ inputs.browser }} \ No newline at end of file + e2e_be_core: + name: Run E2E BE + secrets: inherit + uses: dpc-sdp/github-actions/.github/workflows/run_e2e_be.yml@dev-tim + with: + tags: "(@core) and @regression${{ needs.check_pr.outputs.skip_pr }}" + be_url: ${{ inputs.be_url }} + project: ${{ inputs.project }} + browser: ${{ inputs.browser }} \ No newline at end of file