We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 17fea48 commit 9246b24Copy full SHA for 9246b24
.github/workflows/build.yml
@@ -61,8 +61,8 @@ jobs:
61
run: |
62
set -xueo pipefail
63
MAX_TAG_LENGTH=50
64
- pretty_branch_name="$(echo -n "${BRANCH_NAME#refs/heads/}" | sed 's#/#-#g' | sed 's#_#-#g'| sed 's#\.#-#g' | tr '[:upper:]' '[:lower:]')"
65
- echo "pretty_branch_name=$pretty_branch_name" >> $GITHUB_OUTPUT
+ pretty_branch_name="$(echo -n "${BRANCH_NAME#refs/heads/}" | sed -E 's#[/_\.-]+#-#g' | tr '[:upper:]' '[:lower:]' | cut -c1-25 | sed -E 's#-$##g')"
+ echo "pretty_branch_name=${pretty_branch_name}" >> "${GITHUB_OUTPUT}"
66
timestamp="$(date +'%Y%m%d.%H%M%S')"
67
echo "timestamp=$timestamp" >> $GITHUB_OUTPUT
68
short_sha="$(git rev-parse --short HEAD)"
0 commit comments