Skip to content

Commit

Permalink
update release
Browse files Browse the repository at this point in the history
  • Loading branch information
chaudharysaket committed May 3, 2024
1 parent 257cd76 commit c338b0e
Showing 1 changed file with 12 additions and 11 deletions.
23 changes: 12 additions & 11 deletions .github/workflows/publish-extension.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,15 +36,16 @@ jobs:
echo "REGION=$(echo $output | grep 'Region' | cut -d' ' -f2)" >> $GITHUB_ENV
- name: Create Release
if: steps.extension-check-tag.outputs.match == 'true'
uses: actions/create-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: ${{ env.TAG_NAME }}
release_name: Release for ${{ env.TAG_NAME }}
body: |
Release generated by GitHub Actions run [${{ github.run_id }}](https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }}).
Layer ARN: ${{ env.LAYER_ARN }}
Region: ${{ env.REGION }}
draft: false
prerelease: false
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
TAG: ${{ github.ref_name }}
run: |
file=/tmp/somefile.zip
echo "Uploading $file to release $TAG"
gh release upload "$TAG" "$file"
# Fetch the existing release notes (if necessary)
existing_notes=$(gh release view "$TAG" --json body -q .body)
# Define new notes or modify the existing ones
new_notes="Updated notes here. Previous notes:\n$existing_notes"
# Update the release with new notes
gh release edit "$TAG" --notes "$new_notes"

0 comments on commit c338b0e

Please sign in to comment.