fix(ci) adapt to breaking changes of upgrading github-script [ci skip]
This commit is contained in:
parent
a0ab146e3b
commit
fc0e0506a1
6
.github/workflows/release.yml
vendored
6
.github/workflows/release.yml
vendored
@ -186,14 +186,14 @@ jobs:
|
||||
with:
|
||||
script: |
|
||||
try{
|
||||
const rel_id = await github.repos.getReleaseByTag({
|
||||
const rel_id = await github.rest.repos.getReleaseByTag({
|
||||
...context.repo,
|
||||
tag: "nightly"
|
||||
}).then(result => result.data.id);
|
||||
|
||||
console.log( "Found existing nightly release with id: ", rel_id);
|
||||
|
||||
await github.repos.deleteRelease({
|
||||
await github.rest.repos.deleteRelease({
|
||||
...context.repo,
|
||||
release_id: rel_id
|
||||
});
|
||||
@ -205,7 +205,7 @@ jobs:
|
||||
}
|
||||
|
||||
try{
|
||||
await github.git.deleteRef({
|
||||
await github.rest.git.deleteRef({
|
||||
...context.repo,
|
||||
ref: "tags/nightly"
|
||||
});
|
||||
|
||||
Loading…
Reference in New Issue
Block a user