-
Notifications
You must be signed in to change notification settings - Fork 255
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ci: bump choco action to v3.0.0 and replace release deletion action (#…
…1402) * ci: bump choco action to v3.0.0 and replace release delete action with gh * back to action since it isn't a git repo * let's test if gh works fine if I pull repo
- Loading branch information
1 parent
db9e97a
commit 59b7650
Showing
2 changed files
with
9 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -48,6 +48,11 @@ jobs: | |
runs-on: ubuntu-latest | ||
needs: [build-release] | ||
steps: | ||
- name: Checkout repository | ||
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1 | ||
with: | ||
fetch-depth: 1 | ||
|
||
- name: Get release artifacts | ||
uses: actions/download-artifact@6b208ae046db98c579e8a3aa621ab581ff575935 # v4.1.1 | ||
with: | ||
|
@@ -60,20 +65,17 @@ jobs: | |
echo "Generated $(ls ./release | wc -l) files:" | ||
du -h -d 0 ./release/* | ||
- name: Delete tag and release | ||
uses: ClementTsang/[email protected] | ||
- name: Delete tag and release if not mock | ||
if: github.event.inputs.isMock != 'mock' | ||
with: | ||
delete_release: true | ||
tag_name: nightly | ||
run: gh release delete nightly --cleanup-tag | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
|
||
- name: Sleep for a few seconds to prevent timing issues between the deletion and creation of the release | ||
run: sleep 10 | ||
if: github.event.inputs.isMock != 'mock' | ||
|
||
- name: Add all release files to nightly release if not mock | ||
- name: Add all release files and create nightly release if not mock | ||
uses: softprops/action-gh-release@de2c0eb89ae2a093876385947365aca7b0e5f844 # 0.1.15 | ||
if: github.event.inputs.isMock != 'mock' | ||
with: | ||
|