-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Output release upload URL in Git workflow
- Loading branch information
1 parent
a4b964e
commit 56a27b7
Showing
1 changed file
with
9 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,6 +7,10 @@ on: | |
description: The next determined tag based on the last PR body | ||
value: ${{ jobs.determine-next.outputs.new_tag }} | ||
|
||
upload_url: | ||
description: The URL of the created release | ||
value: ${{ jobs.release.outputs.upload_url }} | ||
|
||
jobs: | ||
determine-next: | ||
runs-on: ubuntu-latest | ||
|
@@ -48,6 +52,8 @@ jobs: | |
release: | ||
if: ${{ github.ref == 'refs/heads/main' && needs.determine-next.outputs.new_tag != 'Skip' }} | ||
runs-on: ubuntu-latest | ||
outputs: | ||
upload_url: ${{ steps.create-release.outputs.upload_url }} | ||
permissions: | ||
contents: write | ||
needs: | ||
|
@@ -57,10 +63,13 @@ jobs: | |
- uses: actions/checkout@v4 | ||
|
||
- name: Create Git release | ||
id: create-release | ||
uses: ncipollo/[email protected] | ||
with: | ||
token: "${{ secrets.GITHUB_TOKEN }}" | ||
generateReleaseNotes: true | ||
makeLatest: true | ||
prerelease: false | ||
tag: ${{ needs.determine-next.outputs.new_tag }} | ||
|
||
- run: echo "upload_url=${{ steps.create-release.outputs.upload_url }}" >> "$GITHUB_OUTPUT" |