chore(release): add jq installation step in workflow for JSON parsing
This commit is contained in:
@@ -19,6 +19,28 @@ jobs:
|
||||
distribution: 'zulu'
|
||||
java-version: '17'
|
||||
|
||||
- name: Install jq
|
||||
run: |
|
||||
set -e
|
||||
SUDO=""
|
||||
if command -v sudo >/dev/null 2>&1; then
|
||||
SUDO="sudo"
|
||||
fi
|
||||
|
||||
if command -v apt-get >/dev/null 2>&1; then
|
||||
$SUDO apt-get update
|
||||
$SUDO apt-get install -y jq
|
||||
elif command -v apk >/dev/null 2>&1; then
|
||||
$SUDO apk add --no-cache jq
|
||||
elif command -v dnf >/dev/null 2>&1; then
|
||||
$SUDO dnf install -y jq
|
||||
elif command -v yum >/dev/null 2>&1; then
|
||||
$SUDO yum install -y jq
|
||||
else
|
||||
echo "Could not find a supported package manager to install jq"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
- name: Setup Flutter
|
||||
uses: subosito/flutter-action@v2
|
||||
with:
|
||||
|
||||
Reference in New Issue
Block a user