Skip to content

Commit 9dad665

Browse files
Fix workflow
1 parent f82277b commit 9dad665

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

.github/workflows/python-package.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -304,7 +304,10 @@ jobs:
304304

305305
- name: Delete old pre-release (if exists)
306306
run: |
307-
cd repo && gh release delete continuous-release_main --cleanup-tag -y
307+
cd repo
308+
if gh release view continuous-release_main &>/dev/null; then
309+
gh release delete continuous-release_main --cleanup-tag -y
310+
fi
308311
env:
309312
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
310313

0 commit comments

Comments
 (0)