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: move update script to correct location #154

Merged
merged 3 commits into from
Jan 7, 2025
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
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 @@ This PR updates all workflows to the latest version.
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 -f "$destination_path/update-workflows.sh" "$destination_path/.github/update_workflows.sh"
fi

cp -pr .config "$destination_path/"

# we do not have special files for simple GitHub projects, this is handled by the default setup
Expand Down
Loading