From 6a04167f6c809ee2536746317fef1976f4e65d71 Mon Sep 17 00:00:00 2001 From: manhinhang Date: Wed, 17 Apr 2024 04:09:30 +0800 Subject: [PATCH] ci: read cur ver from .env --- .github/workflows/detect-new-ver.yml | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/.github/workflows/detect-new-ver.yml b/.github/workflows/detect-new-ver.yml index a4e1750..eb48a52 100644 --- a/.github/workflows/detect-new-ver.yml +++ b/.github/workflows/detect-new-ver.yml @@ -23,9 +23,8 @@ jobs: python scripts/detect_ibc_ver.py echo ibc-ver=${IBC_VER} >> "$GITHUB_OUTPUT" echo ibc-asset-url=${IBC_ASSET_URL} >> "$GITHUB_OUTPUT" - export CUR_IB_GATEWAY_VER=$(cat ib-gateway-ver) - export CUR_IBC_VER=$(cat ibc-ver) - if [ "$ib-gateway-ver" = "$CUR_IB_GATEWAY_VER" ]; then + source .env + if [ "$IB_GATEWAY_VER" = "$CUR_IB_GATEWAY_VER" ]; then echo "No dated IB gateway version" echo has_update=false >> "$GITHUB_OUTPUT" else @@ -56,5 +55,5 @@ jobs: git commit -m 'Update to `${{ steps.check-update.outputs.ib-gateway-ver }}`' git push --set-upstream origin "$branch" - # gh pr create --base develop --fill + gh pr create --base develop --fill \ No newline at end of file