Skip to content

Commit 6659109

Browse files
authored
Merge pull request #48363 from Expensify/Rory-ProdReleaseNotes
[No QA] Improve production release notes
2 parents ac81572 + 5e2bae6 commit 6659109

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

.github/workflows/deploy.yml

+4-1
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,10 @@ jobs:
7171
run: echo "PRODUCTION_VERSION=$(npm run print-version --silent)" >> "$GITHUB_ENV"
7272

7373
- name: 🚀 Edit the release to be no longer a prerelease to deploy production 🚀
74-
run: gh release edit ${{ env.PRODUCTION_VERSION }} --prerelease=false --latest
74+
run: |
75+
LATEST_RELEASE="$(gh release list --exclude-pre-releases --json tagName,isLatest --jq '.[] | select(.isLatest) | .tagName')"
76+
gh api --method POST /repos/Expensify/App/releases/generate-notes -f "tag_name=${{ env.PRODUCTION_VERSION }}" -f "previous_tag_name=$LATEST_RELEASE" >> releaseNotes.md
77+
gh release edit ${{ env.PRODUCTION_VERSION }} --prerelease=false --latest --notes-file releaseNotes.md
7578
env:
7679
GITHUB_TOKEN: ${{ steps.setupGitForOSBotify.outputs.OS_BOTIFY_API_TOKEN }}
7780

0 commit comments

Comments
 (0)