Skip to content

Commit

Permalink
update node version and dependencies (#33)
Browse files Browse the repository at this point in the history
* updated node version and dependencies

* fix for github API changes
  • Loading branch information
Kahera authored Feb 27, 2024
1 parent 3f5b407 commit acf03a2
Show file tree
Hide file tree
Showing 4 changed files with 4,638 additions and 2,096 deletions.
2 changes: 1 addition & 1 deletion action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,5 +22,5 @@ outputs:
commit:
description: 'Commit sha of merge commit'
runs:
using: 'node16'
using: 'node20'
main: 'index.js'
8 changes: 4 additions & 4 deletions index.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
'use strict'

const core = require('@actions/core')
const { GitHub, context } = require('@actions/github')
const github = require('@actions/github')

const main = async () => {
const token = core.getInput('github-token')
Expand All @@ -14,12 +14,12 @@ const main = async () => {
const [owner, repo] = repoString.split('/')
repoObject = { owner, repo }
} else {
repoObject = context.repo
repoObject = github.context.repo
}

const octokit = new GitHub(token)
const octokit = github.getOctokit(token)

const response = await octokit.pulls.merge({
const response = await octokit.rest.pulls.merge({
...repoObject,
pull_number: number,
merge_method: method
Expand Down
Loading

0 comments on commit acf03a2

Please sign in to comment.