Skip to content

Commit

Permalink
Fix octokit breaking change
Browse files Browse the repository at this point in the history
  • Loading branch information
rasmus-saks committed Feb 8, 2024
1 parent 15184a1 commit 8ed3925
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,14 +15,14 @@ async function run() {
}

try {
await octokit.repos.getReleaseByTag({
await octokit.rest.repos.getReleaseByTag({
...github.context.repo,
tag: entry.version
})
console.log(`A release already exists for ${entry.version}, skipping`)
} catch (error) {
console.log(`Could not find a GitHub release for ${entry.version}, creating one`)
octokit.repos.createRelease({
octokit.rest.repos.createRelease({
...github.context.repo,
tag_name: entry.version,
name: entry.version,
Expand Down

0 comments on commit 8ed3925

Please sign in to comment.