Skip to content

Commit 76f96c9

Browse files
committed
fix: normalize agent names to lowercase with hyphens in CI (google#464)
1 parent 7bb703c commit 76f96c9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.github/workflows/test_templated_agent.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ jobs:
107107
AGENT_NAME=$(basename \"$TEMPLATE_PATH\")
108108
DEPLOYMENT_TARGET=\"${{ matrix.deployment_target }}\"
109109
# Use shorter prefix and truncate if needed to stay under 26 chars
110-
TRUNCATED_NAME=$(echo \"$AGENT_NAME\" | cut -c1-21)
110+
TRUNCATED_NAME=$(echo \"$AGENT_NAME\" | cut -c1-21 | tr '[:upper:]' '[:lower:]' | tr '_' '-')
111111
AGENT_GENERATED_NAME=\"test-$TRUNCATED_NAME\"
112112
113113
echo \"--- Testing template: $TEMPLATE_PATH with deployment target: $DEPLOYMENT_TARGET ---\"

0 commit comments

Comments
 (0)