Skip to content

Commit a8d555f

Browse files
committed
SDK-1914 fix for github-script update
1 parent 5421a2f commit a8d555f

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

.github/custom-scripts/create-release.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ async function createRelease({ context, core, github, sha, version }) {
1717
prelease: false,
1818
};
1919

20-
await github.repos.createRelease(release);
20+
await github.rest.repos.createRelease(release);
2121
}
2222

2323
module.exports = createRelease;

.github/workflows/release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -184,7 +184,7 @@ jobs:
184184
const uploadAsset = require('./.github/custom-scripts/upload-asset');
185185
const tagName = '${{ steps.get-version.outputs.version }}';
186186
187-
const { data } = await github.repos.getReleaseByTag({
187+
const { data } = await github.rest.repos.getReleaseByTag({
188188
owner: context.repo.owner,
189189
repo: context.repo.repo,
190190
tag: tagName,

0 commit comments

Comments
 (0)