Skip to content

Commit

Permalink
ci: read cur ver from .env
Browse files Browse the repository at this point in the history
  • Loading branch information
manhinhang committed Apr 16, 2024
1 parent 0c45254 commit 6a04167
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions .github/workflows/detect-new-ver.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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

0 comments on commit 6a04167

Please sign in to comment.