Skip to content

Commit

Permalink
fix: Unhandled error: TypeError: Cannot read properties of undefined …
Browse files Browse the repository at this point in the history
…(reading 'releases') - related to breaking changes in V5 of actions/github-script
  • Loading branch information
rutesantos4 committed Sep 24, 2023
1 parent b4cada7 commit 304c9d5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/publish-github.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ jobs:
script: |
async function getReleaseId() {
try {
const response = await github.repos.getLatestRelease({
const response = await github.rest.repos.getLatestRelease({
owner: ${{ github.repository_owner }},
repo: ${{ github.repository }}
});
Expand Down

0 comments on commit 304c9d5

Please sign in to comment.