From fb8846ff703df99e22e1d371c0f5a94ca8075623 Mon Sep 17 00:00:00 2001 From: Max Prokhorov Date: Wed, 10 Aug 2022 13:25:16 +0300 Subject: [PATCH] Fix github-script v5 breaking change Since v5, rest methods have their own namespace https://github.com/actions/github-script#breaking-changes-in-v5 Fixing latest release that broke on this step https://github.com/letscontrolit/ESPEasy/runs/7740919347?check_suite_focus=true#step:2:21 --- .github/workflows/release.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 6e22d1c0f..36bac0018 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -112,12 +112,12 @@ jobs: with: result-encoding: string script: | - const tagRefObj = await github.git.getRef({ + const tagRefObj = await github.rest.git.getRef({ ...context.repo, ref: context.ref.replace('refs/', '') }); - const tagObj = await github.git.getTag({ + const tagObj = await github.rest.git.getTag({ ...context.repo, tag_sha: tagRefObj.data.object.sha });