Skip to content

Commit

Permalink
np: Update version to '3.0.3' ⚓
Browse files Browse the repository at this point in the history
  • Loading branch information
gabyx committed Sep 20, 2024
1 parent 01fe593 commit 2518709
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 9 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,9 @@ jobs:
git fetch origin --force "$GITHUB_REF:$GITHUB_REF"
- name: Set up Go
uses: actions/setup-go@v2
uses: actions/setup-go@v5
with:
go-version: "1.20"
go-version: "1.22"

- name: Import GPG Key
id: import_gpg
Expand Down
2 changes: 1 addition & 1 deletion nix/pkgs/version.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
{
"version": "3.0.2"
"version": "3.0.3"
}
12 changes: 6 additions & 6 deletions scripts/release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -34,10 +34,10 @@ function commit_version_file() {
jq ".version |= \"$version\"" nix/pkgs/version.json >"$temp"
mv "$temp" nix/pkgs/version.json

if ! git diff --quiet --exit-code; then
git add nix/pkgs/version.json
git commit -m "np: Update version to '$version'"
fi
git add nix/pkgs/version.json
git commit -a -m "np: Update version to '$version'" || {
echo "No new version file generated."
}
}

function create_tag() {
Expand All @@ -47,7 +47,7 @@ function create_tag() {
exit 1
fi

if git ls-remote "refs/tags/v*" | grep -qE "^$tag$"; then
if git ls-remote origin "refs/tags/v*" | grep -qE "^$tag$"; then
echo "Git tag '$tag' already exists."
exit 1
fi
Expand All @@ -62,7 +62,7 @@ function create_tag() {
fi

echo "Tagging..."
git tag -a -m "Version $tag" -m "${add_message[@]}" "prepare-$tag"
git tag -a -m "Version $tag" "${add_message[@]}" "prepare-$tag"

echo "Tag contains:"
git cat-file -p "prepare-$tag"
Expand Down

0 comments on commit 2518709

Please sign in to comment.