From 802e00067c281c50a22c0e5032df0970e0a60851 Mon Sep 17 00:00:00 2001 From: Sven-Hendrik Haase Date: Fri, 3 Jul 2020 05:32:27 +0200 Subject: [PATCH] Try github.request again --- .github/workflows/ci.yml | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) 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,