Skip to content

Commit

Permalink
CI pr-copy-ci-sudden-death: scriptsコピー前に削除する
Browse files Browse the repository at this point in the history
  • Loading branch information
massongit committed Dec 16, 2024
1 parent 7e75f4e commit 3699bdd
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion scripts/pr_copy_ci_sudden_death/pr_copy_ci/copy_ci.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,9 @@ for f in $(find hato-bot/${workflows_path} -type f \
-not -name "*hato-bot.yml" | sed -e "s:hato-bot/${workflows_path}/::g"); do
yq '(.jobs.*.steps.[] | select(has("with")).with | select(has("repo-name")).repo-name) = "dev-hato/sudden-death"' "hato-bot/${workflows_path}/${f}" >"sudden-death/${workflows_path}/${f}"
done

for f in $(find sudden-death/scripts -type f | grep -v sudden_death); do
rm -rf "$f"
done
for f in $(find hato-bot/scripts -type f | grep -v hato_bot | sed -e "s:hato-bot/::g"); do
mkdir -p "sudden-death/$(dirname "${f}")"
rm -rf "sudden-death/${f}"
Expand Down

0 comments on commit 3699bdd

Please sign in to comment.