Skip to content

Commit

Permalink
fix: always release a new version on workflow (#3080)
Browse files Browse the repository at this point in the history
Now that this is manual we should always release when we run the
workflow
  • Loading branch information
stuartwdouglas authored Oct 11, 2024
1 parent 18e38c2 commit 340e56f
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions scripts/autoversion
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,10 @@
set -euo pipefail

old_version="$(svu current)"
new_version="$(svu next)"
new_version="$(svu next --force-patch-increment)"

test -z "$GH_TOKEN" && { echo "GH_TOKEN is not set"; exit 1; }

test "${old_version}" = "${new_version}" && { echo "No version change"; exit 0; }

echo "Version updating from ${old_version} to ${new_version}"

gh api -H "Accept: application/vnd.github.v3+json" \
Expand Down

0 comments on commit 340e56f

Please sign in to comment.