Skip to content

Commit

Permalink
Update release.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
PatrykCholewa authored Nov 14, 2024
1 parent dea0d28 commit cdfbea8
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -83,9 +83,10 @@ jobs:
# Create draft release
- name: Create draft release
id: create_draft
uses: actions/github-script@v6
uses: actions/github-script@v7
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
result-encoding: string
script: |
const tagName = context.payload.inputs.tag;
const releaseDescription = context.payload.inputs.release_name;
Expand All @@ -97,14 +98,13 @@ jobs:
body: releaseDescription, // Description as {release_name}
draft: true
});
// Export release_id to the environment for the next steps
console.log(`RELEASE_ID=${release.data.id}`);
return release.id;
# Upload JAR files to the draft release
- name: Upload JAR files to draft release
uses: actions/github-script@v6
env:
RELEASE_ID: ${{ steps.create_draft.outputs.release_id }}
RELEASE_ID: ${{ steps.create_draft.outputs.result }}
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
script: |
Expand Down Expand Up @@ -145,7 +145,7 @@ jobs:
- name: Publish draft release
uses: actions/github-script@v6
env:
RELEASE_ID: ${{ steps.create_draft.outputs.release_id }}
RELEASE_ID: ${{ steps.create_draft.outputs.result }}
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
script: |
Expand Down

0 comments on commit cdfbea8

Please sign in to comment.