Skip to content

Commit

Permalink
fix: update version numbers in README
Browse files Browse the repository at this point in the history
acaloiaro committed Dec 12, 2024
1 parent a0e2328 commit 3ec2a68
Showing 2 changed files with 2 additions and 10 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/goreleaser.yml
Original file line number Diff line number Diff line change
@@ -31,8 +31,8 @@ jobs:
OLD_TAG=$(svu current --strip-prefix)
NEW_TAG=$(svu next --strip-prefix)
[ "$OLD_TAG" == "$NEW_TAG" ] && echo "no version bump" && exit 0
rg $(svu current) default.nix main.go README.md --files-with-matches | xargs sed -i "s/$(svu current)/$(svu next)/g"
rg $(svu current --prefix='') default.nix main.go README.md --files-with-matches | xargs sed -i "s/$(svu current --prefix='')/$(svu next --prefix='')/g"
echo default.nix README.md main.go | xargs sed -i "s/$(svu current)/$(svu next)/g"
echo default.nix README.md main.go | xargs sed -i "s/$(svu current --prefix='')/$(svu next --prefix='')/g"
git add default.nix
git add main.go
git add README.md
8 changes: 0 additions & 8 deletions flake.nix
Original file line number Diff line number Diff line change
@@ -54,14 +54,6 @@
description = "Run gomod2nix before commit";
entry = "${gomod2nix.legacyPackages.${system}.gomod2nix}/bin/gomod2nix";
};

pre-commit.hooks.svu = {
enable = true;
pass_filenames = false;
name = "svu";
description = "Bump version numbers in code";
entry = "${pkgs.svu}/bin/svu --help";
};
}
];
};

0 comments on commit 3ec2a68

Please sign in to comment.