diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index c517237..ab4df59 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -46,21 +46,21 @@ jobs: }) const actual = child_process.execSync(`curl -Ls ${release.data.assets[0].browser_download_url}`) assert.deepStrictEqual(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 }}", + }) diff --git a/dist/index.js b/dist/index.js index 6cd948c..0e0d14d 100644 --- a/dist/index.js +++ b/dist/index.js @@ -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(`Uploading ${file} to ${asset_name} in release ${tag}.`); - console.log(file_bytes.toString()); yield octokit.repos.uploadReleaseAsset({ url: release.data.upload_url, name: asset_name,