diff --git a/.github/workflows/detect-new-ver.yml b/.github/workflows/detect-new-ver.yml index a4e1750..cdf24bb 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 default.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 diff --git a/default.env b/default.env new file mode 100644 index 0000000..d6b889c --- /dev/null +++ b/default.env @@ -0,0 +1,2 @@ +CUR_IB_GATEWAY_VER=10.19.2l +CUR_IBC_VER=3.18.0