-
Notifications
You must be signed in to change notification settings - Fork 45
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
b57d02f
commit d5e46fd
Showing
4 changed files
with
15 additions
and
7 deletions.
There are no files selected for viewing
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -21,16 +21,25 @@ jobs: | |
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 | ||
source .env | ||
echo ibc-ver=${IBC_VER} >> "$GITHUB_OUTPUT" | ||
echo ibc-asset-url=${IBC_ASSET_URL} >> "$GITHUB_OUTPUT" | ||
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 | ||
echo "New IB gateway version($IB_GATEWAY_VER)" | ||
echo has_update=true >> "$GITHUB_OUTPUT" | ||
fi | ||
if [ "$IBC_VER" = "$CUR_IBC_VER" ]; then | ||
echo "No dated IBC version" | ||
echo has_update=false >> "$GITHUB_OUTPUT" | ||
else | ||
echo "New IBC version($IBC_VER)" | ||
echo has_update=true >> "$GITHUB_OUTPUT" | ||
fi | ||
- name: Update files with new version | ||
if: steps.check-update.outputs.has_update == 'true' | ||
run: | | ||
|
@@ -41,7 +50,7 @@ jobs: | |
env: | ||
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
run: | | ||
branch='feat/update-to-${{ steps.check-update.outputs.ib-gateway-ver }}' | ||
branch='feat/update-to-${{ steps.check-update.outputs.ib-gateway-ver }}-ibc${{steps.check-update.outputs.ibc-ver}}' | ||
git config user.name github-actions | ||
git config user.email [email protected] | ||
git pull | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,3 @@ | ||
*.pyc | ||
.secrets | ||
.env | ||
.vscode |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters