From 08cc1f8c02228d30d2e7d7a833c8401964ade54a Mon Sep 17 00:00:00 2001 From: Tom Forbes Date: Sun, 20 Oct 2024 21:22:08 +0100 Subject: [PATCH] Try this --- .github/workflows/run.yml | 19 ++++++++++++++++--- 1 file changed, 16 insertions(+), 3 deletions(-) diff --git a/.github/workflows/run.yml b/.github/workflows/run.yml index 8a6d0ead..af667d29 100644 --- a/.github/workflows/run.yml +++ b/.github/workflows/run.yml @@ -106,10 +106,23 @@ jobs: upload_url: ${{ steps.create-release.outputs.upload_url }} asset_path: ${{ github.workspace }}/dataset/dataset-*.parquet - - name: Publish release - uses: StuYarrow/publish-release@v1.1.2 + - name: Publish Draft Release + uses: actions/github-script@v7 with: - id: ${{ steps.create-release.outputs.id }} + script: | + const releaseId = "${{ steps.create-release.outputs.id }}"; + const response = await github.rest.repos.updateRelease({ + owner: context.repo.owner, + repo: context.repo.repo, + release_id: releaseId, + draft: false + }); + + if (response.status === 200) { + core.info(`Release ${releaseId} successfully published.`); + } else { + core.setFailed(`Failed to publish release ${releaseId}.`); + } - name: Get download links id: get_download_links