Skip to content

Commit db1b03a

Browse files
committed
fix check
1 parent b8a1e1c commit db1b03a

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

.github/workflows/update-libs.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -48,20 +48,20 @@ jobs:
4848
echo "Update needed. Current version is outdated or not present."
4949
5050
- name: Download whl file
51-
if: steps.check-update.outputs.update_needed != 'false'
51+
if: steps.check-branch.outputs.branch_exists != 'true' && steps.check-update.outputs.update_needed != 'false'
5252
run: |
5353
LATEST_RELEASE=${{ steps.get-latest-version.outputs.LATEST_RELEASE }}
5454
ASSET_URL=$(curl -s https://api.github.com/repos/arduino/app-bricks-py/releases/latest | jq -r '.assets[] | select(.name | endswith(".whl")) | .browser_download_url')
5555
wget "$ASSET_URL" -O libs/arduino_app_bricks-${LATEST_RELEASE}-py3-none-any.whl
5656
5757
- name: Remove old whl files
58-
if: steps.check-update.outputs.update_needed != 'false'
58+
if: steps.check-branch.outputs.branch_exists != 'true' && steps.check-update.outputs.update_needed != 'false'
5959
run: |
6060
LATEST_RELEASE=${{ steps.get-latest-version.outputs.LATEST_RELEASE }}
6161
find libs/ -name 'arduino_app_bricks-*.whl' ! -name "arduino_app_bricks-${LATEST_RELEASE}-py3-none-any.whl" -delete
6262
6363
- name: Commit and push whl file
64-
if: steps.check-update.outputs.update_needed != 'false'
64+
if: steps.check-branch.outputs.branch_exists != 'true' && steps.check-update.outputs.update_needed != 'false'
6565
run: |
6666
LATEST_RELEASE=${{ steps.get-latest-version.outputs.LATEST_RELEASE }}
6767
git config user.name "github-actions"

0 commit comments

Comments
 (0)