diff --git a/README.md b/README.md index ce8da4d..e2a3b1a 100644 --- a/README.md +++ b/README.md @@ -3,7 +3,7 @@ Saves lists of changed files in the `outputs` object and on the filesystem for u ### Workflow Config Example ``` -- uses: lots0logs/gh-action-get-changed-files@2.2.1 +- uses: lots0logs/gh-action-get-changed-files@2.2.2 with: token: ${{ secrets.GITHUB_TOKEN }} ``` diff --git a/dist/index.js b/dist/index.js index 2c8cfc4..ea3e526 100644 --- a/dist/index.js +++ b/dist/index.js @@ -13097,7 +13097,7 @@ function fetchCommitData(commit) { debug('Calling gh.repos.getCommit() with args', args) - return gh.repos.getCommit(args); + return gh.rest.repos.getCommit(args); } function formatLogMessage(msg, obj = null) { diff --git a/index.js b/index.js index 2ee122e..a99a7dd 100644 --- a/index.js +++ b/index.js @@ -26,7 +26,7 @@ function fetchCommitData(commit) { debug('Calling gh.repos.getCommit() with args', args) - return gh.repos.getCommit(args); + return gh.rest.repos.getCommit(args); } function formatLogMessage(msg, obj = null) { diff --git a/package.json b/package.json index 4e58a0c..17113e8 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "gh-action-get-changed-files", - "version": "2.2.1", + "version": "2.2.2", "private": true, "main": "dist/index.js", "scripts":{