Skip to content

Commit c6a62e2

Browse files
authored
Merge pull request #100 from webcoyote/release/v1.2.4
Release v1.2.4
2 parents d9fdf44 + fb9db33 commit c6a62e2

3 files changed

Lines changed: 14 additions & 19 deletions

File tree

.github/scripts/tag-version

Lines changed: 5 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -9,28 +9,13 @@ trap 'echo "${BASH_SOURCE[0]}: line $LINENO: $BASH_COMMAND: exitcode $?"' ERR
99
REPO_ROOT="$(git rev-parse --show-toplevel)"
1010
cd "$REPO_ROOT"
1111

12-
# --- Guard: only run on the default branch ---
13-
DEFAULT_BRANCH="$(git symbolic-ref -q --short refs/remotes/origin/HEAD 2>/dev/null || true)"
14-
DEFAULT_BRANCH="${DEFAULT_BRANCH#origin/}"
15-
if [[ -z "$DEFAULT_BRANCH" ]]; then
16-
# In GitHub Actions, origin/HEAD is often not set; use the API instead
17-
DEFAULT_BRANCH="$(gh repo view --json defaultBranchRef --jq '.defaultBranchRef.name' 2>/dev/null || true)"
18-
fi
19-
if [[ -z "$DEFAULT_BRANCH" ]]; then
20-
echo >&2 "Error: Unable to determine default branch."
21-
exit 1
22-
fi
23-
24-
CURRENT_BRANCH="$(git rev-parse --abbrev-ref HEAD)"
25-
if [[ "$CURRENT_BRANCH" != "$DEFAULT_BRANCH" ]]; then
26-
echo "Not on default branch ($DEFAULT_BRANCH), skipping. Current: $CURRENT_BRANCH"
27-
exit 0
28-
fi
12+
# Note: branch guard is handled by the CI workflow (github.ref == 'refs/heads/main').
13+
# Do not duplicate it here — detached-HEAD checkouts in CI break git-based detection.
2914

3015
# --- Read current version ---
3116
CURRENT_VERSION=$(awk -F'"' '/^readonly VERSION="[0-9.]*"/ {print $2; exit}' ./sv)
3217
if [[ -z "$CURRENT_VERSION" ]]; then
33-
echo >&2 "Error: Could not parse version from ./sv --version"
18+
echo >&2 "Error: Could not parse version"
3419
exit 1
3520
fi
3621

@@ -44,5 +29,7 @@ fi
4429

4530
# --- Create and push the tag on HEAD (the merge commit) ---
4631
echo "Tagging $TAG_NAME on $(git rev-parse --short HEAD)"
32+
git config user.name "github-actions[bot]"
33+
git config user.email "41898282+github-actions[bot]@users.noreply.github.com"
4734
git tag -a "$TAG_NAME" -m "Version $CURRENT_VERSION"
4835
git push origin "$TAG_NAME"

CHANGELOG.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,14 @@
22

33
All notable user-facing changes to SandVault are documented in this file.
44

5+
## [1.2.4] - 2026-04-10
6+
7+
_No user-facing changes. This release includes internal release tooling fixes._
8+
9+
### Thanks to 1 contributor!
10+
11+
- [@webcoyote](https://github.com/webcoyote)
12+
513
## [1.2.3] - 2026-04-10
614

715
_No user-facing changes. This release includes internal CI and release tooling improvements._

sv

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@ fi
136136
###############################################################################
137137
# Resources
138138
###############################################################################
139-
readonly VERSION="1.2.3"
139+
readonly VERSION="1.2.4"
140140

141141
# Re-entrancy detection: if SV_SESSION_ID is already set, we're already in sandvault.
142142
NESTED=false

0 commit comments

Comments
 (0)