5
0
Fork 0
mirror of https://code.forgejo.org/actions/forgejo-release synced 2025-11-12 13:13:50 +00:00

Compare commits

..

1 commit

Author SHA1 Message Date
Jack Greiner
a91ae74f37
forgejo-release.sh: Improve support for different Linux bases
Currently if you run this action and aren't using a Debian based runner
you need to install all tools ahead of time or the Action fails.

This should improve the behaviour so that it will attempt to install all
dependencies on a best effort basis.
2025-09-30 18:09:37 -04:00
2 changed files with 6 additions and 5 deletions

View file

@ -1,12 +1,7 @@
on: [ pull_request, push ]
jobs:
tests:
strategy:
matrix:
tag: [lts, lts-alpine]
runs-on: docker
container:
image: "node:${{ matrix.tag }}"
steps:
- uses: actions/checkout@v4

View file

@ -193,8 +193,14 @@ setup_api() {
if command -v apt-get >/dev/null 2>&1; then
apt-get -qq update && apt-get install -y -qq jq curl
elif command -v dnf >/dev/null 2>&1; then
dnf -y install jq curl
elif command -v yum >/dev/null 2>&1; then
yum -y install jq curl
elif command -v apk >/dev/null 2>&1; then
apk add --no-cache jq curl
elif command -v zypper >/dev/null 2>&1; then
zypper --non-interactive install jq curl
else
echo "No supported package manager found. Please install jq and curl manually." >&2
return 1