From 5e162f866f066f264d0d12f8b60a45a951e67c7c Mon Sep 17 00:00:00 2001 From: plastikfan Date: Wed, 19 Apr 2023 08:17:39 +0100 Subject: [PATCH] fix(scripts): replace arcadia with new-repo (#166) --- scripts/automate-checklist.sh | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/scripts/automate-checklist.sh b/scripts/automate-checklist.sh index 4c46fc3..95710ee 100644 --- a/scripts/automate-checklist.sh +++ b/scripts/automate-checklist.sh @@ -128,8 +128,8 @@ function update-arcadia-in-taskfile() { function update-workflow-names() { local repo=$1 local owner=$2 - local from=./.github/workflows - local file_pattern=*.y*ml + local from=.github/workflows + local file_pattern=*.yml local target="name: Arcadia" local tc_repo="$(echo ${repo:0:1} | tr '[:lower:]' '[:upper:]')${repo:1}" local replacement="name: $tc_repo" @@ -152,7 +152,6 @@ function update-readme() { local owner=$2 local from=./ local file_pattern=README.md - local target="arcadia: " local replacement="${repo}: " @@ -168,6 +167,14 @@ function update-readme() { return 1 fi + target="Arcadia Continuous Integration" + tc_repo="$(echo ${repo:0:1} | tr '[:lower:]' '[:upper:]')${repo:1}" + replacement="$tc_repo Continuous Integration" + update-all-generic $repo $owner $from $file_pattern "$target" "$replacement" + if [ $? -ne 0 ]; then + return 1 + fi + return 0 }