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
This commit is contained in:
Max Prokhorov
2022-08-10 13:25:16 +03:00
committed by GitHub
parent 57b0c0c76e
commit fb8846ff70
+2 -2
View File
@@ -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
});