diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index ade99f82..05f53200 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -42,7 +42,7 @@ jobs: const assert = require('assert').strict; const expected = fs.readFileSync("README.md", "utf-8") - const release = await github.repos.getReleaseByTag({ + const release = await github.rest.repos.getReleaseByTag({ ...context.repo, tag: "ci-test-${{ matrix.os }}-${{ github.run_id }}", }) @@ -73,7 +73,7 @@ jobs: const assert = require('assert').strict; const expected = fs.readFileSync("README.md", "utf-8") - const release = await github.repos.getReleaseByTag({ + const release = await github.rest.repos.getReleaseByTag({ ...context.repo, tag: "ci-test-${{ matrix.os }}-${{ github.run_id }}", }) @@ -88,11 +88,11 @@ jobs: with: github-token: ${{ secrets.GITHUB_TOKEN }} script: | - const release = await github.repos.getReleaseByTag({ + const release = await github.rest.repos.getReleaseByTag({ ...context.repo, tag: "ci-test-${{ matrix.os }}-${{ github.run_id }}", }) - await github.repos.deleteRelease({ + await github.rest.repos.deleteRelease({ ...context.repo, release_id: release.data.id, })