From 5fd906b30a009b6f9b55c51613de7a2f78800126 Mon Sep 17 00:00:00 2001 From: Matthias Kay Date: Sat, 4 Jan 2025 10:09:41 +0100 Subject: [PATCH] move to correct location --- update-workflows.sh => .github/update_workflows.sh | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) rename update-workflows.sh => .github/update_workflows.sh (96%) diff --git a/update-workflows.sh b/.github/update_workflows.sh similarity index 96% rename from update-workflows.sh rename to .github/update_workflows.sh index f62c049..a9b24de 100755 --- a/update-workflows.sh +++ b/.github/update_workflows.sh @@ -62,7 +62,7 @@ function create_commit_and_pr() { Done by the workflows in this feature branch, except for the release workflow. EOF ) - + gh pr create --title "ci: update workflows to latest version" --body "$body" --base main gh pr view --web } @@ -129,6 +129,11 @@ shopt -s nullglob mkdir -p "$destination_path/.github/workflows" cp .github/workflows/default_* "$destination_path/.github/workflows" +# move the update-workflows.sh script to the correct location (from older releases) +if [ -f "$destination_path/update-workflows.sh" ]; then + git mv "$destination_path/update-workflows.sh" "$destination_path/.github/update_workflows.sh" +fi + # we do not have special files for simple GitHub projects, this is handled by the default setup if [ "$repository_type" != "github-only" ]; then cp ".github/workflows/${repository_type}"_* "$destination_path/.github/workflows/"