From b3579cb363d68dd2f853843624a3459675000e50 Mon Sep 17 00:00:00 2001 From: elseif Date: Wed, 19 Feb 2025 11:09:18 +0800 Subject: [PATCH] Update mikrotik_patch_7.yml Signed-off-by: elseif --- .github/workflows/mikrotik_patch_7.yml | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/.github/workflows/mikrotik_patch_7.yml b/.github/workflows/mikrotik_patch_7.yml index 83cb2ea..3c40142 100644 --- a/.github/workflows/mikrotik_patch_7.yml +++ b/.github/workflows/mikrotik_patch_7.yml @@ -510,9 +510,8 @@ jobs: sudo apt-get install ssh sshpass for file in artifacts/latest_version_*.json; do if [ -f "$file" ]; then - arch_channel=$(basename "$file" .json | sed 's/latest_version//') - arch=$(echo "$arch_channel" | cut -d'_' -f1) - channel=$(echo "$arch_channel" | cut -d'_' -f2) + arch=$(jq -r '.arch' "$file") + channel=$(jq -r '.channel' "$file") latest_version=$(jq -r '.latest_version' "$file") build_time=$(jq -r '.build_time' "$file") echo "Arch: $arch, Channel: $channel, Latest Version: $latest_version,Build Time: $build_time"