fix(workflow): delete releases by tag (#728)

This commit is contained in:
InfinityPacer
2026-08-28 11:08:36 +08:00
committed by GitHub
parent 659dc0c74e
commit 9a885396fb
2 changed files with 5 additions and 27 deletions
+2 -1
View File
@@ -72,13 +72,14 @@ describe('前端测试 workflow', () => {
expect(workflow).toContain('run: yarn --frozen-lockfile')
expect(workflow).toContain('echo "frontend_version=v$frontend_version"')
expect(workflow).toContain('gh api --include')
expect(workflow).toContain('gh release delete "$TAG_NAME"')
expect(workflow).toContain('gh release create "$TAG_NAME"')
expect(workflow).toContain('release_status" != "404"')
expect(workflow).toContain('delete_status" != "404"')
expect(workflow).toContain('git/ref/tags/${TAG_NAME}')
expect(workflow).toContain('tag_query_status" = "200"')
expect(workflow).toContain('tag_query_status" != "404"')
expect(workflow).toContain('tag_delete_status" != "204"')
expect(workflow).not.toContain("awk 'body { print; exit }")
expect(workflow).not.toContain('dev-drprasad/delete-tag-and-release')
expect(workflow).not.toContain('softprops/action-gh-release')
expect(workflow).not.toContain('actions/checkout@v3')