Skip to content

Commit c4e80ff

Browse files
committed
ci(windows release): Delete previous Pre Release
It was causing the timestamp of the release to be incorrectly set
1 parent 0322097 commit c4e80ff

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

.github/workflows/windows_build.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -565,6 +565,12 @@ jobs:
565565
Write-Host "github.ref == 'refs/heads/master' && steps.check_tags.outputs.has_stable_tag == 'false':"
566566
if (("${{ github.ref }}" -eq $formatted) -and ("${{ steps.check_tags.outputs.has_stable_tag }}" -eq 'false')) { Write-Host 'true' } else { Write-Host 'false' }
567567
568+
- name: Delete previous Pre Release
569+
if: github.ref == format('refs/heads/{0}', github.event.repository.default_branch) && steps.check_tags.outputs.has_stable_tag == 'false'
570+
run: gh release delete latest-development-build --cleanup-tag
571+
env:
572+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
573+
568574
- name: Pre Release
569575
uses: softprops/action-gh-release@6da8fa9354ddfdc4aeace5fc48d7f679b5214090 # v2.4.1
570576
if: github.ref == format('refs/heads/{0}', github.event.repository.default_branch) && steps.check_tags.outputs.has_stable_tag == 'false'

0 commit comments

Comments
 (0)