Skip to content

Commit

Permalink
fix(scripts): replace arcadia with new-repo (#166)
Browse files Browse the repository at this point in the history
  • Loading branch information
plastikfan committed Apr 19, 2023
1 parent 408c8df commit 5e162f8
Showing 1 changed file with 10 additions and 3 deletions.
13 changes: 10 additions & 3 deletions scripts/automate-checklist.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand All @@ -152,7 +152,6 @@ function update-readme() {
local owner=$2
local from=./
local file_pattern=README.md

local target="arcadia: "
local replacement="${repo}: "

Expand All @@ -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
}

Expand Down

0 comments on commit 5e162f8

Please sign in to comment.