Skip to content

Commit 21fc16c

Browse files
committed
chore(build): improve release-notes action
1 parent b117c4c commit 21fc16c

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

.github/workflows/build-prod.yml

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -67,12 +67,9 @@ jobs:
6767
- name: Checkout repository
6868
uses: actions/checkout@v3
6969

70-
- name: Set up GitHub CLI
71-
uses: cli/cli@v3
72-
with:
73-
github_token: ${{ secrets.GITHUB_TOKEN }}
74-
7570
- name: Generate Release Notes between Tags
71+
env:
72+
GITHUB_TOKEN: ${{ secrets.github_token }}
7673
id: generate_notes
7774
run: |
7875
# Get the tag being pushed (e.g., v1.0.0)
@@ -100,9 +97,11 @@ jobs:
10097
echo "::set-output name=release_notes::$NOTES"
10198
10299
- name: Update Release Notes in GitHub
100+
env:
101+
GITHUB_TOKEN: ${{ secrets.github_token }}
103102
run: |
104103
# Get the tag being pushed
105104
TAG=${GITHUB_REF#refs/tags/}
106105
107106
# Update the release with the generated notes
108-
gh release edit $TAG --notes "${{ steps.generate_notes.outputs.release_notes }}"
107+
gh release edit $TAG --title $TAG --notes "${{ steps.generate_notes.outputs.release_notes }}"

0 commit comments

Comments
 (0)