Skip to content

Commit 9280168

Browse files
committed
update with feedback
1 parent ee1b5da commit 9280168

1 file changed

Lines changed: 6 additions & 2 deletions

File tree

.github/workflows/release.yml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -72,8 +72,12 @@ jobs:
7272
env:
7373
GH_TOKEN: ${{ secrets.SELENIUM_CI_TOKEN }}
7474
run: |
75-
gh release delete nightly --yes || true
76-
git push origin --delete refs/tags/nightly || true
75+
if gh release view nightly >/dev/null 2>&1; then
76+
gh release delete nightly --yes
77+
fi
78+
if git ls-remote --tags origin refs/tags/nightly | grep -q nightly; then
79+
git push origin --delete refs/tags/nightly
80+
fi
7781
- name: Draft GitHub release
7882
uses: ncipollo/release-action@v1
7983
with:

0 commit comments

Comments
 (0)