From 521f8b4a5df7b83656c2474090e71ae8f7e5223b Mon Sep 17 00:00:00 2001 From: Sven-Hendrik Haase Date: Mon, 18 Nov 2024 11:29:15 +0100 Subject: [PATCH] Update GitHub API usage in E2E tests --- .github/workflows/ci.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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, })