From fc0e0506a12f1d2bfc1417c4fc55293278d0aec2 Mon Sep 17 00:00:00 2001 From: Christoph Hasse Date: Tue, 5 Jul 2022 15:55:29 +0200 Subject: [PATCH] fix(ci) adapt to breaking changes of upgrading github-script [ci skip] --- .github/workflows/release.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 5d9cbf3c..df60c687 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -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" });