Skip to content

Commit

Permalink
Update detect-release workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
cjdsellers committed Dec 15, 2023
1 parent 72abff7 commit 6049e2f
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions .github/workflows/detect-release.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
name: Detect IB API Release

on:
push:
branches:
- main
schedule:
- cron: "0 8 * * *"

Expand All @@ -12,7 +15,7 @@ jobs:
strategy:
fail-fast: true
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4

- name: Check unzip version
run: unzip -v
Expand All @@ -23,7 +26,7 @@ jobs:
response=$(curl -s https://interactivebrokers.github.io)
file_url=https://$(echo "$response" | grep -oP '(interactivebrokers.*twsapi_macunix.*zip)(?=.*Stable)')
file_name=$(echo "$file_url" | grep -oP 'twsapi_macunix.*.zip')
build_version=$(echo "$file_url" | grep -oP '(?<=twsapi_macunix.).*(?=.zip)')
build_version=$(echo "$file_url" | grep -oP '(?<=twsapi_macunix.).*(?=.zip)' | sed 's/^\([0-9][0-9]\)\(.*\)$/\1.\2/')
echo "file_url=$file_url" >> $GITHUB_OUTPUT
echo "file_name=$file_name" >> $GITHUB_OUTPUT
echo "build_version=$build_version" >> $GITHUB_OUTPUT
Expand Down

0 comments on commit 6049e2f

Please sign in to comment.