Skip to content

Commit 2cbd7b3

Browse files
committed
ci: fix special branch names for previews
1 parent bde7c56 commit 2cbd7b3

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

.github/workflows/previews-ods-ui.yaml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,8 +45,10 @@ jobs:
4545
- name: Configure some variables
4646
id: vars
4747
run: |
48+
BRANCH_NAME="${GITHUB_HEAD_REF}"
49+
BRANCH_STANDARDIZED="$(echo ${BRANCH_NAME}| tr '[:upper:]' '[:lower:]' | sed -E 's/[^a-z0-9-]+/-/g; s/-+/-/g; s/^-+//; s/-+$//)"
4850
echo "short_sha=$(git rev-parse --short HEAD)" >> $GITHUB_OUTPUT
49-
echo "branch=${GITHUB_HEAD_REF}" >> $GITHUB_OUTPUT
51+
echo "branch=${BRANCH_STANDARDIZED}" >> $GITHUB_OUTPUT
5052
5153
- name: Configure cluster context
5254
run: |

0 commit comments

Comments
 (0)