Skip to content

Commit

Permalink
Fix last url
Browse files Browse the repository at this point in the history
  • Loading branch information
vvolkgang committed Nov 28, 2024
1 parent 87ed8ef commit eaa2e58
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions .github/workflows/github-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -107,23 +107,21 @@ jobs:
# Extract release tag from URL
release_tag=$(echo "$url" | sed 's/.*\/tag\///')
echo "release_tag=$release_tag" >> $GITHUB_OUTPUT
echo "release_url=$url" >> $GITHUB_OUTPUT
- name: Update Release Description
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
RELEASE_ID: ${{ steps.create_release.outputs.release_tag }}
RELEASE_URL: ${{ steps.create_release.outputs.release_url }}
RELEASE_TAG: ${{ steps.create_release.outputs.release_tag }}
ARTIFACT_RUN_ID: ${{ inputs.artifact-run-id }}
run: |
# Get current release body
current_body=$(gh release view ${{ steps.create_release.outputs.release_tag }} --json body --jq .body)
current_body=$(gh release view $RELEASE_TAG --json body --jq .body)
# Append build source to the end
updated_body="${current_body}
**Builds Source:** https://github.com/${{ github.repository }}/actions/runs/$ARTIFACT_RUN_ID"
# Update release
gh release edit ${{ steps.create_release.outputs.release_tag }} --notes "$updated_body"
new_url=$(gh release edit $RELEASE_TAG --notes "$updated_body")
echo "# :rocket: Release ready at:" >> $GITHUB_STEP_SUMMARY
echo "$RELEASE_URL" >> $GITHUB_STEP_SUMMARY
echo "$new_url" >> $GITHUB_STEP_SUMMARY

0 comments on commit eaa2e58

Please sign in to comment.