Skip to content

Commit

Permalink
fix typo
Browse files Browse the repository at this point in the history
  • Loading branch information
dmke committed Jun 6, 2024
1 parent 673d014 commit 86efee3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/update-latest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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({
Expand Down

0 comments on commit 86efee3

Please sign in to comment.