We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 673d014 commit 86efee3Copy full SHA for 86efee3
.github/workflows/update-latest.yml
@@ -23,13 +23,13 @@ jobs:
23
script: |
24
const { owner, repo } = context.repo
25
26
- const { data: allTags } = await github.rest.git.getMatchingRef({
+ const { data: allTags } = await github.rest.git.listMatchingRefs({
27
owner,
28
repo,
29
ref: 'tags/v',
30
})
31
const { ref, object: { sha: releaseRef } } = allTags[allTags.length - 1],
32
- releaseTag = ref.substring(11)
+ releaseTag = ref.substring(10)
33
console.log(`latest release: ${releaseTag}, ${releaseRef}`)
34
35
const { data: { object: { sha: masterRef } } } = await github.rest.git.getRef({
0 commit comments