diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 4a2d5c1..841287f 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -41,20 +41,14 @@ jobs: ...context.repo, tag: "ci-test-${{ matrix.os }}", }) - const actual = await github.repos.getReleaseAsset({ - ...context.repo, - headers: { - Accept: "application/octet-stream" - }, - asset_id: release.data.assets[0].id, - }) + const actual = await github.request(release.data.assets[0].browser_download_url) const assert = require('assert').strict; assert.equal(expected, actual) - name: Clean up if: ${{ always() }} uses: actions/github-script@v2 with: - github-token: ${{secrets.GITHUB_TOKEN}} + github-token: ${{ secrets.GITHUB_TOKEN }} script: | const release = await github.repos.getReleaseByTag({ ...context.repo,