feat: use tea binary from system if available (#53)
Some checks failed
/ integration (push) Has been cancelled

As a proposal solution to this issue: https://code.forgejo.org/actions/forgejo-release/issues/51

We use the system installed tea binary if available or download it as it was done before if not.
The location of the binary is stored in a new variable `$TEA_BIN` which replaces the need for the `$ BIN_DIR` location.

I tested it on Alpine and Debian.

Co-authored-by: Rayan Mestiri <rayan.mestiri@gmail.com>
Co-authored-by: Rayan MESTIRI <rayan.mestiri@NLGRSSL600K.ratpsmart.local>
Reviewed-on: https://code.forgejo.org/actions/forgejo-release/pulls/53
Reviewed-by: earl-warren <earl-warren@noreply.code.forgejo.org>
Co-authored-by: sheik <sheik@noreply.code.forgejo.org>
Co-committed-by: sheik <sheik@noreply.code.forgejo.org>
This commit is contained in:
sheik 2025-06-28 20:36:41 +00:00 committed by earl-warren
parent 85122bff5d
commit 7359830877
No known key found for this signature in database
GPG key ID: F128CBE6AB3A7201
3 changed files with 27 additions and 9 deletions

View file

@ -7,4 +7,6 @@ jobs:
- name: Unit tests of the supporting script forgejo-release.sh
run: |
testdata/forgejo-release-test.sh test_maybe_sign_release
testdata/forgejo-release-test.sh test_system_tea_bin
testdata/forgejo-release-test.sh test_download_tea_bin
testdata/forgejo-release-test.sh test_maybe_sign_release