From 86efee32d627bf6ce3ccde81b1638d60b210a71d Mon Sep 17 00:00:00 2001 From: Dominik Menke Date: Thu, 6 Jun 2024 19:06:09 +0200 Subject: [PATCH] fix typo --- .github/workflows/update-latest.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/update-latest.yml b/.github/workflows/update-latest.yml index 5601c3d..31af536 100644 --- a/.github/workflows/update-latest.yml +++ b/.github/workflows/update-latest.yml @@ -23,13 +23,13 @@ jobs: script: | const { owner, repo } = context.repo - const { data: allTags } = await github.rest.git.getMatchingRef({ + const { data: allTags } = await github.rest.git.listMatchingRefs({ owner, repo, ref: 'tags/v', }) const { ref, object: { sha: releaseRef } } = allTags[allTags.length - 1], - releaseTag = ref.substring(11) + releaseTag = ref.substring(10) console.log(`latest release: ${releaseTag}, ${releaseRef}`) const { data: { object: { sha: masterRef } } } = await github.rest.git.getRef({