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}