mirror of
https://github.com/acaloiaro/ess
synced 2026-07-21 18:29:08 +00:00
fix: svu bump version numbers in code
This commit is contained in:
parent
d4e0e79e42
commit
67f5dc20fc
3 changed files with 11 additions and 9 deletions
10
.github/workflows/goreleaser.yml
vendored
10
.github/workflows/goreleaser.yml
vendored
|
|
@ -30,13 +30,15 @@ jobs:
|
|||
go install github.com/caarlos0/svu@latest
|
||||
OLD_TAG=$(svu current --strip-prefix)
|
||||
NEW_TAG=$(svu next --strip-prefix)
|
||||
[ "$OLD_TAG" == "$NEW_TAG" ] && echo "no version bump" && exit 0
|
||||
sed -i "s/$OLD_TAG/$NEW_TAG/g" default.nix
|
||||
sed -i "s/$OLD_TAG/$NEW_TAG/g" main.go
|
||||
[ "$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"
|
||||
git add default.nix
|
||||
git add main.go
|
||||
git add main.go
|
||||
git add README.md
|
||||
git commit -m "bump release version" --allow-empty
|
||||
git tag v$NEW_TAG
|
||||
git tag $NEW_TAG
|
||||
git push
|
||||
git push --tags
|
||||
- name: Run GoReleaser
|
||||
|
|
|
|||
|
|
@ -156,7 +156,7 @@ This utility can be used as a [pre-commit plugin](https://pre-commit.com/#instal
|
|||
cat <<EOF > .pre-commit-config.yaml
|
||||
repos:
|
||||
- repo: https://github.com/acaloiaro/ess.git
|
||||
rev: v2.6.0
|
||||
rev: v2.13.0
|
||||
hooks:
|
||||
- id: ess
|
||||
EOF
|
||||
|
|
@ -214,7 +214,7 @@ It's even possible to provide default/example values for every environment varia
|
|||
```yml
|
||||
repos:
|
||||
- repo: https://github.com/acaloiaro/ess.git
|
||||
rev: v2.6.0
|
||||
rev: v2.13.0
|
||||
hooks:
|
||||
- id: ess
|
||||
```
|
||||
|
|
@ -224,7 +224,7 @@ repos:
|
|||
```yml
|
||||
repos:
|
||||
- repo: https://github.com/acaloiaro/ess.git
|
||||
rev: v2.6.0
|
||||
rev: v2.13.0
|
||||
hooks:
|
||||
- id: ess
|
||||
args: ['--env-file=.env_file', '--sample-file=env_file.sample']
|
||||
|
|
@ -239,7 +239,7 @@ environment variable name surrounded by `<brackets like this>` in sample files.
|
|||
```yml
|
||||
repos:
|
||||
- repo: https://github.com/acaloiaro/ess.git
|
||||
rev: v2.6.0
|
||||
rev: v2.13.0
|
||||
hooks:
|
||||
- id: ess
|
||||
args: [--example=FOO="Provide your foo here", --example=BAR="You can fetch bars from https://example.com/bars"]
|
||||
|
|
|
|||
|
|
@ -37,7 +37,7 @@
|
|||
{
|
||||
packages = with pkgs; [
|
||||
automake
|
||||
go_1_22
|
||||
go_1_23
|
||||
gomod2nix.legacyPackages.${system}.gomod2nix
|
||||
gotools
|
||||
golangci-lint
|
||||
|
|
|
|||
Loading…
Reference in a new issue