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 b57d02f
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
9 changes: 5 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 default.env
if [ "$IB_GATEWAY_VER" = "$CUR_IB_GATEWAY_VER" ]; then
echo "No dated IB gateway version"
echo has_update=false >> "$GITHUB_OUTPUT"
else
Expand All @@ -50,11 +49,13 @@ jobs:
# Update files
cp README.update README.md
cp Dockerfile.update Dockerfile
echo "CUR_IB_GATEWAY_VER=${{ steps.check-update.outputs.ib-gateway-ver }}`" > default.env
echo "CUR_IBC_VER=${{ steps.check-update.outputs.ibc-ver }}`" >> default.env
#####
git add README.md
git add Dockerfile
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
2 changes: 2 additions & 0 deletions default.env
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
CUR_IB_GATEWAY_VER=
CUR_IBC_VER=

0 comments on commit b57d02f

Please sign in to comment.