Cleanup preview env workflow variables (#25160)
* cleanup staging action vars, prep for OS deploy workflow * fix app_url
This commit is contained in:
@@ -36,7 +36,7 @@ for (const file of articleFiles) {
|
||||
const sourceUrl = file.blob_url
|
||||
const fileName = file.filename.slice(pathPrefix.length)
|
||||
const fileUrl = fileName.slice(0, fileName.lastIndexOf('.'))
|
||||
const previewLink = `https://${APP_URL}/${fileUrl}`
|
||||
const previewLink = `${APP_URL}/${fileUrl}`
|
||||
const productionLink = `https://docs.github.com/${fileUrl}`
|
||||
let markdownLine = ''
|
||||
|
||||
|
||||
@@ -12,8 +12,8 @@
|
||||
[[ -z $GITHUB_ENV ]] && { echo "Missing GITHUB_ENV. Exiting."; exit 1; }
|
||||
[[ -z $APP_NAME_SEED ]] && { echo "Missing APP_NAME_SEED. Exiting."; exit 1; }
|
||||
|
||||
RESOURCE_GROUP="docs-nonprod"
|
||||
echo "RESOURCE_GROUP=${RESOURCE_GROUP}" >> $GITHUB_ENV
|
||||
PREVIEW_ENV_LOCATION="eastus"
|
||||
echo "PREVIEW_ENV_LOCATION=${PREVIEW_ENV_LOCATION}" >> $GITHUB_ENV
|
||||
|
||||
REPO_NAME="${GITHUB_REPOSITORY#*\/}"
|
||||
echo "REPO_NAME=${REPO_NAME}" >> $GITHUB_ENV
|
||||
@@ -30,7 +30,7 @@ APP_SHA=$(echo -n "${APP_NAME_SEED}-${APP_NAME_BASE}" | sha1sum | cut -c1-6)
|
||||
APP_NAME="${APP_NAME_BASE}-${APP_SHA}"
|
||||
echo "APP_NAME=${APP_NAME}" >> $GITHUB_ENV
|
||||
|
||||
APP_URL="https://${APP_NAME}.eastus.azurecontainer.io"
|
||||
APP_URL="https://${APP_NAME}.${PREVIEW_ENV_LOCATION}.azurecontainer.io"
|
||||
echo "APP_URL=${APP_URL}" >> $GITHUB_ENV
|
||||
|
||||
IMAGE_REPO="${GITHUB_REPOSITORY}/pr-${PR_NUMBER}"
|
||||
|
||||
Reference in New Issue
Block a user