|
18 | 18 | id: version |
19 | 19 | run: | |
20 | 20 | 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)') |
22 | 22 | file_name=$(echo "$file_url" | grep -oP 'twsapi_macunix.*.zip') |
23 | 23 | build_version=$(echo "$file_url" | grep -oP '(?<=twsapi_macunix.).*(?=.zip)' | sed 's/^\([0-9][0-9]\)\(.*\)$/\1.\2/') |
24 | 24 | echo "file_url=$file_url" >> $GITHUB_OUTPUT |
@@ -55,21 +55,21 @@ jobs: |
55 | 55 | env: |
56 | 56 | GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} |
57 | 57 | 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' |
61 | 61 |
|
62 | 62 | - name: Create PR |
63 | 63 | if: ${{ steps.check-update.outputs.has_update == 'true' }} |
64 | 64 | env: |
65 | 65 | GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} |
66 | 66 | run: | |
67 | | - t_branch='update-stable-to-${{ steps.version.outputs.build_version }}' |
| 67 | + t_branch='update-latest-to-${{ steps.version.outputs.build_version }}' |
68 | 68 | git config user.name github-actions |
69 | 69 | git config user.email github-actions@github.com |
70 | 70 | git pull |
71 | 71 | git checkout -b "$t_branch" origin/main |
72 | 72 | 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 }}`' |
74 | 74 | git push --set-upstream origin "$t_branch" |
75 | 75 | gh pr create --base main --fill |
0 commit comments