ci: Fix how version is obtained for pkgbuild (#5443)

* fix: Change how starship version is determined

* Add STARSHIP_VERSION envar into CI for notarization

* More strict!

* Supress pushd/popd output

* Fix shellcheck issue with quoting
This commit is contained in:
Kevin Song
2023-10-01 01:59:34 -05:00
committed by GitHub
parent 8168c21293
commit 001253cebe
3 changed files with 16 additions and 7 deletions
@@ -87,4 +87,4 @@ trap - INT
# Build the component package
version="$(starship_version "$starship_program_file")"
pkgbuild --identifier com.starshipprompt.starship --version "$version" --root $pkgdir starship-component.pkg
pkgbuild --identifier com.starshipprompt.starship --version "$version" --root "$pkgdir" starship-component.pkg