Skip to content

Commit

Permalink
fix: fix appel cypress sur preview (#946)
Browse files Browse the repository at this point in the history
  • Loading branch information
remy-auricoste authored Dec 20, 2023
1 parent 30f546e commit 005137b
Showing 1 changed file with 7 additions and 14 deletions.
21 changes: 7 additions & 14 deletions .github/workflows/deploy_preview.yml
Original file line number Diff line number Diff line change
Expand Up @@ -158,21 +158,14 @@ jobs:
pr_number: ${{ github.event.issue.number }}

cypress:
runs-on: ubuntu-latest
concurrency:
group: ${{ github.workflow }}-${{ github.event.issue.id }}-cypress
cancel-in-progress: true
needs: ["deploy_preview"]
steps:
- id: "get-branch"
run: echo "branch=$(gh pr view $PR_NO --repo $REPO --json headRefName --jq '.headRefName')" >> $GITHUB_OUTPUT
env:
REPO: ${{ github.repository }}
PR_NO: ${{ github.event.issue.number }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- uses: "./.github/workflows/cypress.yml"
with:
cypress_host: "https://${{ github.event.issue.number }}.labonnealternance-preview.apprentissage.beta.gouv.fr"
smtp_host: "https://smtp.labonnealternance-preview.apprentissage.beta.gouv.fr"
branch: ${{ steps.get-branch.outputs.branch }}
uses: "./.github/workflows/cypress.yml"
with:
cypress_host: "https://${{ github.event.issue.number }}.labonnealternance-preview.apprentissage.beta.gouv.fr"
smtp_host: "https://smtp.labonnealternance-preview.apprentissage.beta.gouv.fr"
secrets:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK }}

0 comments on commit 005137b

Please sign in to comment.