File tree 1 file changed +5
-2
lines changed
1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change 1
1
name : Detect IB API Release
2
2
3
3
on :
4
+ push :
5
+ branches :
6
+ - main
4
7
schedule :
5
8
- cron : " 0 8 * * *"
6
9
12
15
strategy :
13
16
fail-fast : true
14
17
steps :
15
- - uses : actions/checkout@v3
18
+ - uses : actions/checkout@v4
16
19
17
20
- name : Check unzip version
18
21
run : unzip -v
23
26
response=$(curl -s https://interactivebrokers.github.io)
24
27
file_url=https://$(echo "$response" | grep -oP '(interactivebrokers.*twsapi_macunix.*zip)(?=.*Stable)')
25
28
file_name=$(echo "$file_url" | grep -oP 'twsapi_macunix.*.zip')
26
- build_version=$(echo "$file_url" | grep -oP '(?<=twsapi_macunix.).*(?=.zip)')
29
+ build_version=$(echo "$file_url" | grep -oP '(?<=twsapi_macunix.).*(?=.zip)' | sed 's/^\([0-9][0-9]\)\(.*\)$/\1.\2/' )
27
30
echo "file_url=$file_url" >> $GITHUB_OUTPUT
28
31
echo "file_name=$file_name" >> $GITHUB_OUTPUT
29
32
echo "build_version=$build_version" >> $GITHUB_OUTPUT
You can’t perform that action at this time.
0 commit comments