mirror of
https://github.com/EchoSixHIYA/WebSpeak-client-for-TeamSpeak.git
synced 2026-12-03 03:52:50 +08:00
release: prepare v0.2.7
This commit is contained in:
1 parent
48c2fb3948
commit
292b4073b3
37 files changed
+154
-2022
No files matched your search
@@ -9,7 +9,7 @@ on:
|
||||
version:
|
||||
description: Release version without the v prefix
|
||||
required: true
|
||||
default: 0.2.6
|
||||
default: 0.2.7
|
||||
type: string
|
||||
|
||||
permissions:
|
||||
@@ -309,31 +309,3 @@ jobs:
|
||||
name: WebSpeak ${{ github.ref_name }}
|
||||
body_path: docs/releases/${{ github.ref_name }}.md
|
||||
files: release-assets/*
|
||||
- name: Remove superseded preview release and tag
|
||||
uses: actions/github-script@v7
|
||||
with:
|
||||
script: |
|
||||
const tag = 'v0.2.6-preview';
|
||||
try {
|
||||
const release = await github.rest.repos.getReleaseByTag({
|
||||
owner: context.repo.owner,
|
||||
repo: context.repo.repo,
|
||||
tag,
|
||||
});
|
||||
await github.rest.repos.deleteRelease({
|
||||
owner: context.repo.owner,
|
||||
repo: context.repo.repo,
|
||||
release_id: release.data.id,
|
||||
});
|
||||
} catch (error) {
|
||||
if (error.status !== 404) throw error;
|
||||
}
|
||||
try {
|
||||
await github.rest.git.deleteRef({
|
||||
owner: context.repo.owner,
|
||||
repo: context.repo.repo,
|
||||
ref: `tags/${tag}`,
|
||||
});
|
||||
} catch (error) {
|
||||
if (error.status !== 404 && error.status !== 422) throw error;
|
||||
}
|
||||
Reference in new issue
Block a user