We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e6b5db3 commit 2c806dbCopy full SHA for 2c806db
1 file changed
Justfile
@@ -55,6 +55,14 @@ build GOOS=(GOOS) GOARCH=(GOARCH):
55
release:
56
#!/usr/bin/env bash
57
set -euo pipefail
58
+ branch="$(git rev-parse --abbrev-ref HEAD)"
59
+ if [ "${branch}" != "main" ]; then
60
+ echo "Releases must be tagged on main, not ${branch}"; exit 1
61
+ fi
62
+ git fetch origin main
63
+ if [ "$(git rev-parse HEAD)" != "$(git rev-parse origin/main)" ]; then
64
+ echo "Local main is not up to date with origin/main"; exit 1
65
66
next="$(svu next)"
67
if [ "${next}" = "$(svu current 2>/dev/null)" ]; then
68
echo "No releasable changes since ${next}"; exit 1
0 commit comments