diff --git a/README.md b/README.md index e0cecc7..3d2afbd 100644 --- a/README.md +++ b/README.md @@ -1,3 +1,6 @@ +GHA TEST 2. +deployment 6. +
diff --git a/scripts/vortex/notify-github.sh b/scripts/vortex/notify-github.sh index b179d6d..1c20192 100755 --- a/scripts/vortex/notify-github.sh +++ b/scripts/vortex/notify-github.sh @@ -32,9 +32,12 @@ VORTEX_NOTIFY_GITHUB_EVENT="${VORTEX_NOTIFY_GITHUB_EVENT:-${VORTEX_NOTIFY_EVENT: # GitHub notification deployment environment URL. VORTEX_NOTIFY_GITHUB_ENVIRONMENT_URL="${VORTEX_NOTIFY_GITHUB_ENVIRONMENT_URL:-${VORTEX_NOTIFY_ENVIRONMENT_URL:-}}" -# GitHub notification environment type: production, uat, dev, pr. +# GitHub notification environment type. # Used as the 'environment' parameter in GitHub's Deployment API. -VORTEX_NOTIFY_GITHUB_ENVIRONMENT_TYPE="${VORTEX_NOTIFY_GITHUB_ENVIRONMENT_TYPE:-PR}" +# Defaults to VORTEX_NOTIFY_LABEL (e.g. "PR-123" or branch name) for unique +# per-PR/branch environments. This prevents cross-PR deployment interference +# where deploying one PR would mark another PR's deployment as inactive. +VORTEX_NOTIFY_GITHUB_ENVIRONMENT_TYPE="${VORTEX_NOTIFY_GITHUB_ENVIRONMENT_TYPE:-${VORTEX_NOTIFY_LABEL:-PR}}" # ------------------------------------------------------------------------------