From 97020058377e640f3efbd53e6f93fe972cc92a64 Mon Sep 17 00:00:00 2001 From: Chris Morrell Date: Fri, 29 Sep 2023 17:00:15 -0400 Subject: [PATCH] Update template-cleanup.yml --- .github/workflows/template-cleanup.yml | 12 ++---------- 1 file changed, 2 insertions(+), 10 deletions(-) diff --git a/.github/workflows/template-cleanup.yml b/.github/workflows/template-cleanup.yml index c7b9868..ee3b3a2 100644 --- a/.github/workflows/template-cleanup.yml +++ b/.github/workflows/template-cleanup.yml @@ -14,20 +14,12 @@ jobs: uses: actions/checkout@v3 - name: Cleanup run: | - # Debugging - echo "Repository name: $GITHUB_REPOSITORY" + export LC_CTYPE=C + export LANG=C - # Get name portion from repository name NAME="${GITHUB_REPOSITORY##*/}" - echo "Base name: $NAME" - - # Generate name versions from base KEBAB=$(echo $NAME | tr -s -c '[:alpha:][:cntrl:]' ' ' | tr '[:upper:]' '[:lower:]' | tr ' ' '-') STUDLY="$(echo "$NAME" | awk '{split($0,a,"[_ -]"); for(i=1;i<=length(a);++i) printf "%s",(length(a[i]) > 0 ? toupper(substr(a[i],1,1)) tolower(substr(a[i],2)) : "")}')" - - # Debugging - echo "Kebab name: $KEBAB" - echo "Studly name: $STUDLY" # Replace placeholder names find . -type f -not -name "template-cleanup.yml" -exec sed -i "s/laravel-package-template/$KEBAB/g" {} +