Skip to content

Commit

Permalink
ci: fix unable read cur ver
Browse files Browse the repository at this point in the history
  • Loading branch information
manhinhang committed Apr 16, 2024
1 parent c5c8eb7 commit 0a281af
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions .github/workflows/detect-new-ver.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,17 +18,18 @@ jobs:
- name: detect new ib gateway version
id: check-update
run: |
echo ib-gateway-ver=$(python scripts/detect_ib_gateway_ver.py) >> "$GITHUB_OUTPUT"
IB_GATEWAY_VER=$(python scripts/detect_ib_gateway_ver.py)
echo ib-gateway-ver=${IB_GATEWAY_VER} >> "$GITHUB_OUTPUT"
python scripts/detect_ibc_ver.py
echo ibc-ver=${IBC_VER} >> "$GITHUB_OUTPUT"
echo ibc-asset-url=${IBC_ASSET_URL} >> "$GITHUB_OUTPUT"
cur-ib-gateway-ver=$(cat ib-gateway-ver)
cur-ibc-ver=$(cat ibc-ver)
if [ "$ib-gateway-ver" = "$cur-ib-gateway-ver" ]; then
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
echo "No dated IB gateway version"
has_update=false >> "$GITHUB_OUTPUT"
else
echo "New IB gateway version($ib-gateway-ver)"
echo "New IB gateway version($IB_GATEWAY_VER)"
has_update=true >> "$GITHUB_OUTPUT"
fi
- name: Update files with new version
Expand Down

0 comments on commit 0a281af

Please sign in to comment.