tools: Update scripts

This commit is contained in:
Taiki Endo
2025-03-02 16:32:48 +09:00
parent 8777561bf0
commit 916a512474
2 changed files with 7 additions and 15 deletions

View File

@@ -117,18 +117,14 @@ fi
set -x
git tag "${tag}"
retry git push origin main
retry git push origin --tags
retry git push origin refs/heads/main
retry git push origin refs/tags/"${tag}"
major_version_tag="v${version%%.*}"
git checkout -b "${major_version_tag}"
retry git push origin refs/heads/"${major_version_tag}"
if git --no-pager tag | grep -Eq "^${major_version_tag}$"; then
git tag -d "${major_version_tag}"
retry git push --delete origin refs/tags/"${major_version_tag}"
fi
git tag "${major_version_tag}"
retry git push origin --tags
git tag -f "${major_version_tag}"
retry git push origin -f refs/tags/"${major_version_tag}"
git checkout main
git branch -d "${major_version_tag}"
@@ -150,12 +146,8 @@ for tool in "${tools[@]}"; do
git add action.yml
git commit -m "${tool}"
retry git push origin -f refs/heads/"${tool}"
if git --no-pager tag | grep -Eq "^${tool}$"; then
git tag -d "${tool}"
retry git push --delete origin refs/tags/"${tool}"
fi
git tag "${tool}"
retry git push origin --tags
git tag -f "${tool}"
retry git push origin -f refs/tags/"${tool}"
git checkout main
git branch -D "${tool}"
done

View File

@@ -666,7 +666,7 @@ elif check_install shellcheck; then
if [[ ${#docker_files[@]} -gt 0 ]]; then
# Exclude SC2096 due to the way the temporary script is created.
shellcheck_exclude=SC2096
info "running \`shellcheck --exclude ${shellcheck_exclude}\` for scripts in \$(git ls-files '*Dockerfile*')\`"
info "running \`shellcheck --exclude ${shellcheck_exclude}\` for scripts in \`\$(git ls-files '*Dockerfile*')\`"
if check_install jq python3 parse-dockerfile; then
shellcheck_for_dockerfile() {
local text=$1