Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(scripts): replace arcadia with new-repo (#166) #167

Merged
merged 1 commit into from
Apr 19, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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