Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 5 additions & 2 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -184,13 +184,16 @@ jobs:
set -o pipefail
if [[ "${{ github.ref }}" == 'refs/heads/main' ]]; then
echo "RELEASE_NAME=website-prod" >> "$GITHUB_ENV"
echo "URL=api-platform.com" >> "$GITHUB_ENV"
else
CONTEXT=nonprod
if [ "$GITHUB_EVENT_NAME" == "pull_request" ]; then
echo RELEASE_NAME=pr-$(jq --raw-output .pull_request.number "$GITHUB_EVENT_PATH") >> "$GITHUB_ENV"
export RELEASE_NAME=pr-$(jq --raw-output .pull_request.number "$GITHUB_EVENT_PATH")
else
echo "RELEASE_NAME=${{ github.ref_name }}" >> "$GITHUB_ENV"
export RELEASE_NAME=${{ github.ref_name }}
fi
echo "URL=$RELEASE_NAME.apip.preprod-tilleuls.ovh" >> "$GITHUB_ENV"
fi
- name: Check for dead links
uses: lycheeverse/lychee-action@v2.8.0
Expand All @@ -201,4 +204,4 @@ jobs:
# site. Keep it advisory (report, don't fail the deploy) until the
# cluster serves a trusted certificate, then remove `fail: false`.
fail: false
args: --verbose --no-progress --accept 200,403,429 https://${{ env.RELEASE_NAME}}.apip.preprod-tilleuls.ovh
args: --verbose --no-progress --accept 200,403,429 https://${{ env.URL }}
Loading