From 171f2e3ff1f8d223d5526561eef90ed5408d486b Mon Sep 17 00:00:00 2001 From: Jim Bumgardner Date: Fri, 19 Apr 2024 13:55:51 -0700 Subject: [PATCH] Fix use of UPPERCASE in branch names for PRs. --- .github/workflows/eleventy_build_pr.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/eleventy_build_pr.yml b/.github/workflows/eleventy_build_pr.yml index 071dbba3..9a1f86e6 100644 --- a/.github/workflows/eleventy_build_pr.yml +++ b/.github/workflows/eleventy_build_pr.yml @@ -35,7 +35,7 @@ jobs: run: echo "BRANCH_NAME=$(echo ${GITHUB_HEAD_REF})" >> $GITHUB_ENV - name: Escape branch name for URL shell: bash - run: echo "URLSAFE_BRANCH_NAME=$(echo ${BRANCH_NAME} | sed 's|[^A-Za-z0-9-]|-|g' | sed -E 's|-*([A-Za-z0-9]*.*[A-Za-z0-9]+)-*|\1|')" >> $GITHUB_ENV + run: echo "URLSAFE_BRANCH_NAME=$(echo ${BRANCH_NAME} | tr '[:upper:]' '[:lower:]' | sed 's|[^A-Za-z0-9-]|-|g' | sed -E 's|-*([A-Za-z0-9]*.*[A-Za-z0-9]+)-*|\1|')" >> $GITHUB_ENV - name: Report escaped branch name shell: bash run: echo ${URLSAFE_BRANCH_NAME}