Skip to content

Commit e3d8acf

Browse files
ginifizzbcobzh
andauthored
lichee-url for production (#694) (#695)
Co-authored-by: bcobzh <49025717+bcobzh@users.noreply.github.com>
1 parent 9ceeeae commit e3d8acf

1 file changed

Lines changed: 5 additions & 2 deletions

File tree

.github/workflows/deploy.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff 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 }}

0 commit comments

Comments
 (0)