More debugging

This commit is contained in:
Sven-Hendrik Haase 2020-07-03 06:50:39 +02:00
parent 9afb63d9be
commit d082cf3f16
No known key found for this signature in database
GPG Key ID: 39E4B877E62EB915

View File

@ -45,24 +45,25 @@ jobs:
tag: "ci-test-${{ matrix.os }}",
})
const actual = child_process.execSync(`curl -Ls ${release.data.assets[0].browser_download_url}`)
console.log(release.data.assets[0].browser_download_url)
console.log(actual)
console.log(actual.toString('utf8'))
console.log(actual.toString())
assert.equal(expected, actual)
- name: Clean up
if: ${{ always() }}
uses: actions/github-script@v2
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
script: |
const release = await github.repos.getReleaseByTag({
...context.repo,
tag: "ci-test-${{ matrix.os }}",
})
await github.repos.deleteRelease({
...context.repo,
release_id: release.data.id,
})
await github.git.deleteRef({
...context.repo,
ref: "ci-test-${{ matrix.os }}",
})
# - name: Clean up
# if: ${{ always() }}
# uses: actions/github-script@v2
# with:
# github-token: ${{ secrets.GITHUB_TOKEN }}
# script: |
# const release = await github.repos.getReleaseByTag({
# ...context.repo,
# tag: "ci-test-${{ matrix.os }}",
# })
# await github.repos.deleteRelease({
# ...context.repo,
# release_id: release.data.id,
# })
# await github.git.deleteRef({
# ...context.repo,
# ref: "ci-test-${{ matrix.os }}",
# })