Skip to content

Commit

Permalink
feat: release notes
Browse files Browse the repository at this point in the history
  • Loading branch information
Skylar Simoncelli committed Oct 1, 2024
1 parent 71c42fa commit c489e2c
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion .github/actions/release/create-draft-release/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -79,8 +79,15 @@ runs:
if: ${{ steps.check_release.outputs.release_exists == 'false' }}
run: |
tag="${{ inputs.tag }}"
release_body="### Pre-release candidate for version $tag\n\n"
release_body+="This is a draft pre-release candidate for release $tag that is undergoing testing. The current testing status is:\n\n"
release_body+="- [x] Local environment\n"
release_body+="- [ ] Staging preview environment\n"
release_body+="- [ ] Staging preprod environment\n\n"
release_body+="Please note: this release is not yet fully verified and is pending further testing.\n"
release_response=$(curl -s -X POST -H "Authorization: token ${{ env.GITHUB_TOKEN }}" \
-d '{"tag_name": "'$tag'", "name": "'$tag'", "body": "Draft release for '$tag'", "draft": true, "generate_release_notes": true}' \
-d '{"tag_name": "'$tag'", "name": "'$tag'", "body": "'"$release_body"'", "draft": true, "generate_release_notes": true, "prerelease": true}' \
"https://api.github.com/repos/${{ github.repository }}/releases")
echo "release_id=$(echo $release_response | jq -r .id)" >> $GITHUB_ENV
echo "::set-output name=release_id::$(echo $release_response | jq -r .id)"
Expand Down

0 comments on commit c489e2c

Please sign in to comment.