Skip to content

Commit d5570f3

Browse files
use env action
1 parent c994f3a commit d5570f3

1 file changed

Lines changed: 13 additions & 2 deletions

File tree

.github/workflows/e2e.yaml

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,21 @@ jobs:
1717
- name: Install dependencies
1818
run: |
1919
yarn install --immutable
20+
21+
- name: Env
22+
id: env
23+
uses: socialgouv/kontinuous/.github/actions/env@v1
24+
2025
- name: Set env
2126
run: |
22-
echo "SITE_URL=${{ github.event.deployment_status.env_url }}" >> $GITHUB_ENV
23-
echo "${{ github.event.deployment_status.env_url }}"
27+
echo "SITE_URL=https://${{ steps.env.outputs.subdomain }}.ovh.fabrique.social.gouv.fr" >> $GITHUB_ENV
28+
echo SITE_URL ==> ${{ env.SITE_URL }}"
29+
echo SUBDOMAIN ==> ${{ steps.env.outputs.subdomain }}
30+
31+
# - name: Set env
32+
# run: |
33+
# echo "SITE_URL=${{ github.event.deployment_status.env_url }}" >> $GITHUB_ENV
34+
# echo "${{ github.event.deployment_status.env_url }}"
2435
- name: Run test e2e
2536
run: |
2637
yarn test:e2e:app

0 commit comments

Comments
 (0)