Skip to content

Commit

Permalink
move to correct location
Browse files Browse the repository at this point in the history
  • Loading branch information
kayman-mk committed Jan 4, 2025
1 parent 621ad2b commit 5fd906b
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion update-workflows.sh → .github/update_workflows.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down Expand Up @@ -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/"
Expand Down

0 comments on commit 5fd906b

Please sign in to comment.