Skip to content
This repository was archived by the owner on Dec 21, 2024. It is now read-only.

Commit 0cff480

Browse files
authored
Merge pull request #28 from rivet-gg/nathan/gh-actions-clip-ns-len
Clip namespace name ID length in GitHub Actions
2 parents 45c466d + e4cf967 commit 0cff480

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cli/tpl/workflows/rivet-publish.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ jobs:
117117
id: create_namespace
118118
run: |
119119
NS_DISPLAY_NAME="${{ steps.consts.outputs.git_branch }}"
120-
NS_NAME_ID="$(sed -E 's/[^[:alnum:]]+/-/g' <<< "$NS_DISPLAY_NAME")"
120+
NS_NAME_ID="$(sed -E 's/[^[:alnum:]]+/-/g' <<< "$NS_DISPLAY_NAME" | cut -c1-16)"
121121
NAMESPACE_ID="$(rivet --cloud-token "${{ secrets.RIVET_CLOUD_TOKEN }}" namespace create --name-id "$NS_NAME_ID" --display-name "$NS_DISPLAY_NAME" --version "${{ steps.create_version.outputs.version_id }}" --format json | jq -r '.namespace_id')"
122122
echo "::set-output name=namespace_id::$NAMESPACE_ID"
123123

0 commit comments

Comments
 (0)