Skip to content

Commit f1b2dcf

Browse files
committed
Track IB API Latest channel instead of Stable
IB now ships the Python API only in the Latest channel, so the Stable-only regex was stuck at 10.37. Switch detection to Latest and update release tags, branch names, and commits to match.
1 parent 3028409 commit f1b2dcf

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

.github/workflows/detect-release.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ jobs:
1818
id: version
1919
run: |
2020
response=$(curl -s https://interactivebrokers.github.io)
21-
file_url=https://$(echo "$response" | grep -oP '(interactivebrokers.*twsapi_macunix.*zip)(?=.*Stable)')
21+
file_url=https://$(echo "$response" | grep -oP '(interactivebrokers.*twsapi_macunix.*zip)(?=.*Latest)')
2222
file_name=$(echo "$file_url" | grep -oP 'twsapi_macunix.*.zip')
2323
build_version=$(echo "$file_url" | grep -oP '(?<=twsapi_macunix.).*(?=.zip)' | sed 's/^\([0-9][0-9]\)\(.*\)$/\1.\2/')
2424
echo "file_url=$file_url" >> $GITHUB_OUTPUT
@@ -55,21 +55,21 @@ jobs:
5555
env:
5656
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
5757
run: |
58-
gh release create 'ibapi-stable@${{ steps.version.outputs.build_version }}' \
59-
-t 'IB API Stable ${{ steps.version.outputs.build_version }}' \
60-
-n 'IB API Stable ${{ steps.version.outputs.build_version }} release files'
58+
gh release create 'ibapi-latest@${{ steps.version.outputs.build_version }}' \
59+
-t 'IB API Latest ${{ steps.version.outputs.build_version }}' \
60+
-n 'IB API Latest ${{ steps.version.outputs.build_version }} release files'
6161
6262
- name: Create PR
6363
if: ${{ steps.check-update.outputs.has_update == 'true' }}
6464
env:
6565
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
6666
run: |
67-
t_branch='update-stable-to-${{ steps.version.outputs.build_version }}'
67+
t_branch='update-latest-to-${{ steps.version.outputs.build_version }}'
6868
git config user.name github-actions
6969
git config user.email github-actions@github.com
7070
git pull
7171
git checkout -b "$t_branch" origin/main
7272
git add -A
73-
git commit -m 'Update Stable to `${{ steps.version.outputs.build_version }}`'
73+
git commit -m 'Update Latest to `${{ steps.version.outputs.build_version }}`'
7474
git push --set-upstream origin "$t_branch"
7575
gh pr create --base main --fill

0 commit comments

Comments
 (0)