Use Forgejo single-commit route and validate release publisher in CI
All checks were successful
Release AstroFrame / packages (push) Successful in 56s
All checks were successful
Release AstroFrame / packages (push) Successful in 56s
This commit is contained in:
parent
51fab803b3
commit
0a6476d428
4 changed files with 5 additions and 3 deletions
|
|
@ -43,7 +43,7 @@ if ($LASTEXITCODE) { throw 'Cannot identify the release commit.' }
|
|||
$status = @(& git status --porcelain)
|
||||
if ($LASTEXITCODE) { throw 'Cannot check release source status.' }
|
||||
if ($status.Count -gt 0) { throw 'Commit the release source and push it before publishing.' }
|
||||
Invoke-RestMethod "$api/commits/$commit" -Headers $headers | Out-Null
|
||||
Invoke-RestMethod "$api/git/commits/$commit" -Headers $headers | Out-Null
|
||||
$tag = "v$Version"
|
||||
$remoteTag = $null
|
||||
try { $remoteTag = Invoke-RestMethod "$api/tags/$tag" -Headers $headers }
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue