diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 5162d28..95e9138 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -44,9 +44,8 @@ jobs: ...context.repo, tag: "ci-test-${{ matrix.os }}", }) - const actual = child_process.execSync(`curl -L ${release.data.assets[0].browser_download_url}`) + const actual = child_process.execSync(`curl -Ls ${release.data.assets[0].browser_download_url}`).file.data console.log(actual.toString('utf8')) - console.log(expected.toString('utf8')) assert.equal(expected, actual) - name: Clean up if: ${{ always() }} diff --git a/dist/index.js b/dist/index.js index 685db71..d018142 100644 --- a/dist/index.js +++ b/dist/index.js @@ -2211,7 +2211,7 @@ function get_release_by_tag(tag, octokit) { // If this returns 404, we need to create the release first. if (error.status === 404) { core.debug(`Release for tag ${tag} doesn't exist yet so we'll create it now.`); - return yield octokit.repos.createRelease(Object.assign(Object.assign({}, github.context.repo), { tag_name: tag })); + return yield octokit.repos.createRelease(Object.assign(Object.assign({}, github.context.repo), { tag_name: tag, draft: true, prerelease: false })); } else { throw error; diff --git a/src/main.ts b/src/main.ts index 50ebe16..40a7fa7 100644 --- a/src/main.ts +++ b/src/main.ts @@ -30,7 +30,7 @@ async function get_release_by_tag( ...github.context.repo, tag_name: tag, draft: true, - prerelease: false, + prerelease: false }) } else { throw error