File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -184,13 +184,16 @@ jobs:
184184 set -o pipefail
185185 if [[ "${{ github.ref }}" == 'refs/heads/main' ]]; then
186186 echo "RELEASE_NAME=website-prod" >> "$GITHUB_ENV"
187+ echo "URL=api-platform.com" >> "$GITHUB_ENV"
187188 else
188- CONTEXT=nonprod
189189 if [ "$GITHUB_EVENT_NAME" == "pull_request" ]; then
190190 echo RELEASE_NAME=pr-$(jq --raw-output .pull_request.number "$GITHUB_EVENT_PATH") >> "$GITHUB_ENV"
191+ export RELEASE_NAME=pr-$(jq --raw-output .pull_request.number "$GITHUB_EVENT_PATH")
191192 else
192193 echo "RELEASE_NAME=${{ github.ref_name }}" >> "$GITHUB_ENV"
194+ export RELEASE_NAME=${{ github.ref_name }}
193195 fi
196+ echo "URL=$RELEASE_NAME.apip.preprod-tilleuls.ovh" >> "$GITHUB_ENV"
194197 fi
195198 - name : Check for dead links
196199 uses : lycheeverse/lychee-action@v2.8.0
@@ -201,4 +204,4 @@ jobs:
201204 # site. Keep it advisory (report, don't fail the deploy) until the
202205 # cluster serves a trusted certificate, then remove `fail: false`.
203206 fail : false
204- args : --verbose --no-progress --accept 200,403,429 https://${{ env.RELEASE_NAME}}.apip.preprod-tilleuls.ovh
207+ args : --verbose --no-progress --accept 200,403,429 https://${{ env.URL }}
You can’t perform that action at this time.
0 commit comments