Geni: Changed so pkgx don't change src/main.rs if version is more then 0.0.3 (#4683)

* upgraded pantry package

* updated package.yml

* updated

* /releases/tags is default behavior

* removed if for version over 0.0.4

* added a v for testing

* =

---------

Co-authored-by: Jacob Heider <jacob@pkgx.dev>
This commit is contained in:
Emil Priver 2024-01-01 22:14:34 +01:00 committed by GitHub
parent 1d268a9358
commit f45c514222
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -16,9 +16,9 @@ build:
script: script:
# 0.0.4 got released without a version bump # 0.0.4 got released without a version bump
- run: sed -i -e 's/"0\.0\.3"/"{{version}}"/g' Cargo.toml src/main.rs - run: sed -i -e 's/"0\.0\.3"/"{{version}}"/g' Cargo.toml src/main.rs
if: '>=0.0.3' if: '=0.0.4'
- cargo install --locked --path . --root {{prefix}} - cargo install --locked --path . --root {{prefix}}
test: test:
script: script:
- test "$(geni --version)" = "geni {{version}}" - test "$(geni --version)" = "geni v{{version}}"