Skip to content

Commit

Permalink
Try this
Browse files Browse the repository at this point in the history
  • Loading branch information
orf committed Oct 20, 2024
1 parent f726f53 commit 08cc1f8
Showing 1 changed file with 16 additions and 3 deletions.
19 changes: 16 additions & 3 deletions .github/workflows/run.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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/[email protected]
- 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
Expand Down

0 comments on commit 08cc1f8

Please sign in to comment.