Clean up after tests
This commit is contained in:
parent
38c90ed08f
commit
fbc34f818a
36
.github/workflows/ci.yml
vendored
36
.github/workflows/ci.yml
vendored
@ -46,21 +46,21 @@ jobs:
|
|||||||
})
|
})
|
||||||
const actual = child_process.execSync(`curl -Ls ${release.data.assets[0].browser_download_url}`)
|
const actual = child_process.execSync(`curl -Ls ${release.data.assets[0].browser_download_url}`)
|
||||||
assert.deepStrictEqual(expected, actual)
|
assert.deepStrictEqual(expected, actual)
|
||||||
# - name: Clean up
|
- name: Clean up
|
||||||
# if: ${{ always() }}
|
if: ${{ always() }}
|
||||||
# uses: actions/github-script@v2
|
uses: actions/github-script@v2
|
||||||
# with:
|
with:
|
||||||
# github-token: ${{ secrets.GITHUB_TOKEN }}
|
github-token: ${{ secrets.GITHUB_TOKEN }}
|
||||||
# script: |
|
script: |
|
||||||
# const release = await github.repos.getReleaseByTag({
|
const release = await github.repos.getReleaseByTag({
|
||||||
# ...context.repo,
|
...context.repo,
|
||||||
# tag: "ci-test-${{ matrix.os }}",
|
tag: "ci-test-${{ matrix.os }}",
|
||||||
# })
|
})
|
||||||
# await github.repos.deleteRelease({
|
await github.repos.deleteRelease({
|
||||||
# ...context.repo,
|
...context.repo,
|
||||||
# release_id: release.data.id,
|
release_id: release.data.id,
|
||||||
# })
|
})
|
||||||
# await github.git.deleteRef({
|
await github.git.deleteRef({
|
||||||
# ...context.repo,
|
...context.repo,
|
||||||
# ref: "ci-test-${{ matrix.os }}",
|
ref: "ci-test-${{ matrix.os }}",
|
||||||
# })
|
})
|
||||||
|
1
dist/index.js
vendored
1
dist/index.js
vendored
@ -2245,7 +2245,6 @@ function upload_to_release(release, file, asset_name, tag, overwrite, octokit) {
|
|||||||
core.debug(`No pre-existing asset called ${asset_name} found in release ${tag}. All good.`);
|
core.debug(`No pre-existing asset called ${asset_name} found in release ${tag}. All good.`);
|
||||||
}
|
}
|
||||||
core.debug(`Uploading ${file} to ${asset_name} in release ${tag}.`);
|
core.debug(`Uploading ${file} to ${asset_name} in release ${tag}.`);
|
||||||
console.log(file_bytes.toString());
|
|
||||||
yield octokit.repos.uploadReleaseAsset({
|
yield octokit.repos.uploadReleaseAsset({
|
||||||
url: release.data.upload_url,
|
url: release.data.upload_url,
|
||||||
name: asset_name,
|
name: asset_name,
|
||||||
|
Loading…
Reference in New Issue
Block a user