Skip to content

Commit 86efee3

Browse files
committed
fix typo
1 parent 673d014 commit 86efee3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.github/workflows/update-latest.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -23,13 +23,13 @@ jobs:
2323
script: |
2424
const { owner, repo } = context.repo
2525
26-
const { data: allTags } = await github.rest.git.getMatchingRef({
26+
const { data: allTags } = await github.rest.git.listMatchingRefs({
2727
owner,
2828
repo,
2929
ref: 'tags/v',
3030
})
3131
const { ref, object: { sha: releaseRef } } = allTags[allTags.length - 1],
32-
releaseTag = ref.substring(11)
32+
releaseTag = ref.substring(10)
3333
console.log(`latest release: ${releaseTag}, ${releaseRef}`)
3434
3535
const { data: { object: { sha: masterRef } } } = await github.rest.git.getRef({

0 commit comments

Comments
 (0)