Skip to content

Commit

Permalink
build: fix pr auto create
Browse files Browse the repository at this point in the history
  • Loading branch information
GalvinGao committed Aug 24, 2023
1 parent 951f807 commit 8eeb440
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .github/workflows/pr-auto-create.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,10 +30,11 @@ jobs:
script: |
let lastRelease = 'v0.0.0'
try {
const { data: { tag_name: lastRelease } } = await github.rest.repos.getLatestRelease({
const { data: { tag_name: fetchedLastRelease } } = await github.rest.repos.getLatestRelease({
owner: context.repo.owner,
repo: context.repo.repo
})
lastRelease = fetchedLastRelease
} catch (e) {
console.log('No release found, creating first release')
}
Expand Down

0 comments on commit 8eeb440

Please sign in to comment.