Skip to content

Commit

Permalink
Bugfix: Create release draft.
Browse files Browse the repository at this point in the history
  • Loading branch information
peters committed Jul 10, 2024
1 parent f309ef8 commit 5b4f00e
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions .github/workflows/dotnetcore.yml
Original file line number Diff line number Diff line change
Expand Up @@ -256,21 +256,18 @@ jobs:
- name: Create github release tag
id: create-release
uses: "actions/github-script@v7"
needs: [setup]
env:
VERSION: ${{ needs.setup.outputs.SNAPX_VERSION }}
with:
github-token: "${{ secrets.GITHUB_TOKEN }}"
script: |
try {
$response = await github.rest.repos.createRelease({
draft: false,
draft: true,
generate_release_notes: true,
name: "Release " + process.env.VERSION,
name: "Release " + process.env.SNAPX_VERSION,
owner: context.repo.owner,
prerelease: false,
repo: context.repo.repo,
tag_name: "v" + process.env.VERSION,
tag_name: "v" + process.env.SNAPX_VERSION,
});
return $response['data']['body'];
} catch (error) {
Expand Down

0 comments on commit 5b4f00e

Please sign in to comment.