mirror of
https://code.forgejo.org/actions/forgejo-release
synced 2026-04-06 18:16:53 +00:00
fix: wrong assest upload
This commit is contained in:
parent
9112f0a8e8
commit
0fe1533e48
2 changed files with 16 additions and 33 deletions
14
testdata/forgejo-release-test.sh
vendored
14
testdata/forgejo-release-test.sh
vendored
|
|
@ -4,6 +4,20 @@
|
|||
set -ex
|
||||
PS4='${BASH_SOURCE[0]}:$LINENO: ${FUNCNAME[0]}: '
|
||||
|
||||
: ${TEA_BIN:=$TMP_DIR/tea}
|
||||
: ${TEA_VERSION:=0.10.1}
|
||||
|
||||
# TODO: remove, still used in some tests
|
||||
setup_tea() {
|
||||
if which tea 2>/dev/null; then
|
||||
TEA_BIN=$(which tea)
|
||||
elif ! test -f $TEA_BIN; then
|
||||
ARCH=$(dpkg --print-architecture)
|
||||
curl -sL https://dl.gitea.io/tea/$TEA_VERSION/tea-$TEA_VERSION-linux-"$ARCH" >$TEA_BIN
|
||||
chmod +x $TEA_BIN
|
||||
fi
|
||||
}
|
||||
|
||||
test_system_tea_bin() {
|
||||
SYSTEM_TEA_BIN=$TMP_DIR/tea
|
||||
touch $SYSTEM_TEA_BIN && chmod +x $SYSTEM_TEA_BIN
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue