Skip to content

Commit

Permalink
Update GitHub API usage in E2E tests
Browse files Browse the repository at this point in the history
  • Loading branch information
svenstaro committed Nov 18, 2024
1 parent e1b03c7 commit 521f8b4
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}",
})
Expand Down Expand Up @@ -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 }}",
})
Expand All @@ -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,
})
Expand Down

0 comments on commit 521f8b4

Please sign in to comment.