Skip to content
Snippets Groups Projects
Commit 02975cf2 authored by Timo Furrer's avatar Timo Furrer
Browse files

Merge branch 'release-script-idempotent' into 'main'

Make release script more robust

See merge request components/opentofu!275
parents becf6520 e78d730e
No related branches found
No related tags found
No related merge requests found
Pipeline #271865 failed
...@@ -30,7 +30,7 @@ echo "Updating default value for version input to match ${version} ..." ...@@ -30,7 +30,7 @@ echo "Updating default value for version input to match ${version} ..."
"${script_dir}/update-self-version.sh" "${version}" "${script_dir}/update-self-version.sh" "${version}"
git commit templates/*.yml -m "Update version input default for ${version} release" git commit templates/*.yml -m "Update version input default for ${version} release" || echo "Nothing to commit, skipping it ..."
git push -o ci.skip origin main git push -o ci.skip origin main
echo "Determing last stable version ..." echo "Determing last stable version ..."
...@@ -55,7 +55,7 @@ echo "Pulling changelog ..." ...@@ -55,7 +55,7 @@ echo "Pulling changelog ..."
git pull git pull
echo "Tagging ${version} ..." echo "Tagging ${version} ..."
git tag "${version}" git tag "${version}" || echo "Release tag already exists, skipping it ..."
echo "Pushing tag ${version} ..." echo "Pushing tag ${version} ..."
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment