Try github.request again
This commit is contained in:
parent
ffdc680f33
commit
802e00067c
10
.github/workflows/ci.yml
vendored
10
.github/workflows/ci.yml
vendored
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user