Skip to content

Commit 84382dc

Browse files
committed
fix: remove invalid --latest flag from gh release view
gh release view defaults to showing the latest release when no tag is specified, so the --latest flag was unnecessary and invalid.
1 parent 8f1e7f2 commit 84382dc

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

.github/workflows/release-notes.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,8 @@ jobs:
3333
run: |
3434
# Fetch latest release info via gh CLI since github.event.release
3535
# isn't available with workflow_run trigger
36-
TAG=$(gh release view --latest --json tagName -q '.tagName')
37-
DATE=$(gh release view --latest --json publishedAt -q '.publishedAt' | cut -d'T' -f1)
36+
TAG=$(gh release view --json tagName -q '.tagName')
37+
DATE=$(gh release view --json publishedAt -q '.publishedAt' | cut -d'T' -f1)
3838
echo "tag=${TAG}" >> $GITHUB_OUTPUT
3939
echo "date=${DATE}" >> $GITHUB_OUTPUT
4040
@@ -44,7 +44,7 @@ jobs:
4444
GH_TOKEN: ${{ github.token }}
4545
run: |
4646
# Get release body via gh CLI
47-
gh release view --latest --json body -q '.body' > /tmp/raw_body.txt
47+
gh release view --json body -q '.body' > /tmp/raw_body.txt
4848
4949
REPO_URL="https://github.com/${{ github.repository }}"
5050

0 commit comments

Comments
 (0)