diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index c0f3c4c7fe..bf092b900b 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -66,7 +66,7 @@ jobs: - name: Get Latest RT Release id: get-latest-rt run: | - LATEST_RUNTIME_RELEASE=$(curl -s https://api.github.com/repos/moonbeam-foundation/moonbeam/releases | jq -r '.[] | select(.name | test("runtime";"i")) | .tag_name' | head -n 1 | tr -d '[:blank:]') && [[ ! -z "${LATEST_RUNTIME_RELEASE}" ]] + LATEST_RUNTIME_RELEASE=$(curl -s https://api.github.com/repos/moonbeam-foundation/moonbeam/releases | jq -r '.[] | select(.name | test("runtime";"i")) | .tag_name' | sort -rs | head -n 1 | tr -d '[:blank:]') && [[ ! -z "${LATEST_RUNTIME_RELEASE}" ]] echo $LATEST_RUNTIME_RELEASE echo "latest_rt=$LATEST_RUNTIME_RELEASE" >> $GITHUB_OUTPUT - name: Get Sha diff --git a/.github/workflows/coverage.yml b/.github/workflows/coverage.yml index 6c1c9dbed9..ef5f1c1a5a 100644 --- a/.github/workflows/coverage.yml +++ b/.github/workflows/coverage.yml @@ -60,7 +60,7 @@ jobs: - name: Get Latest RT Release id: get-latest-rt run: | - LATEST_RUNTIME_RELEASE=$(curl -s https://api.github.com/repos/moonbeam-foundation/moonbeam/releases | jq -r '.[] | select(.name | test("runtime";"i")) | .tag_name' | head -n 1 | tr -d '[:blank:]') + LATEST_RUNTIME_RELEASE=$(curl -s https://api.github.com/repos/moonbeam-foundation/moonbeam/releases | jq -r '.[] | select(.name | test("runtime";"i")) | .tag_name' | sort -rs | head -n 1 | tr -d '[:blank:]') echo $LATEST_RUNTIME_RELEASE echo "latest_rt=$LATEST_RUNTIME_RELEASE" >> $GITHUB_OUTPUT - name: Get Sha