fix(workflow): use -s flag to trigger Uptime Kuma setup on empty uk_tokens.yml
All checks were successful
Deploy Environment Monitoring to Production Environment / deploy (push) Successful in 27s
All checks were successful
Deploy Environment Monitoring to Production Environment / deploy (push) Successful in 27s
The previous ! -f check skipped setup when uk_tokens.yml existed but was empty (0 bytes). Switching to ! -s triggers setup whenever the file is missing or empty.
This commit is contained in:
parent
0ef4f0b6f8
commit
9fbc74d498
@ -90,7 +90,7 @@ jobs:
|
||||
export SPRING_PROFILES_ACTIVE=PROD
|
||||
source_env_file ./health-agent/.env
|
||||
mkdir -p "${HEALTH_AGENT_CONFIG_GENERATED_DIR}"
|
||||
if [ ! -f "${HEALTH_AGENT_CONFIG_GENERATED_DIR}/uk_tokens.yml" ]; then
|
||||
if [ ! -s "${HEALTH_AGENT_CONFIG_GENERATED_DIR}/uk_tokens.yml" ]; then
|
||||
docker run --rm \
|
||||
-v "${HEALTH_AGENT_CONFIG_GENERATED_DIR}:/app/config/generated" \
|
||||
--env-file "$(pwd)/health-agent/.env" \
|
||||
|
||||
@ -80,7 +80,7 @@ jobs:
|
||||
export SPRING_PROFILES_ACTIVE=TEST
|
||||
source_env_file ./health-agent/.env
|
||||
mkdir -p "${HEALTH_AGENT_CONFIG_GENERATED_DIR}"
|
||||
if [ ! -f "${HEALTH_AGENT_CONFIG_GENERATED_DIR}/uk_tokens.yml" ]; then
|
||||
if [ ! -s "${HEALTH_AGENT_CONFIG_GENERATED_DIR}/uk_tokens.yml" ]; then
|
||||
docker run --rm \
|
||||
-v "${HEALTH_AGENT_CONFIG_GENERATED_DIR}:/app/config/generated" \
|
||||
--env-file "$(pwd)/health-agent/.env" \
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user