Skip to content

Commit

Permalink
Try to fix releae notes
Browse files Browse the repository at this point in the history
  • Loading branch information
nicholasdille committed Dec 17, 2023
1 parent f0315ef commit 337b596
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 2 deletions.
6 changes: 6 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,3 +51,9 @@ jobs:
--build-arg ACTIONS_ID_TOKEN_REQUEST_URL \
--build-arg ACTIONS_ID_TOKEN_REQUEST_TOKEN \
.
- name: Store release notes
uses: actions/upload-artifact@v3
with:
name: release-notes
path: release-notes.md
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,8 @@ RUN --mount=from=goreleaser,src=/usr/local/bin/goreleaser,target=/usr/local/bin/
--mount=type=cache,target=/root/.cache/go-build <<EOF
goreleaser healthcheck
goreleaser release
bash scripts/release-notes.sh >/tmp/release-notes.md
gh release edit "$(git tag --list v* | tail -n 1)" --notes-file /tmp/release-notes.md
bash scripts/release-notes.sh >release-notes.md
gh release edit "$(git tag --list v* | tail -n 1)" --notes-file release-notes.md
EOF

FROM base AS unit-test
Expand Down
2 changes: 2 additions & 0 deletions scripts/release-notes.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,12 @@ set -o errexit -o pipefail

TAG="$(
git tag \
| sort -V \
| tail -n 1
)"
PREVIOUS_TAGS="$(
git tag --list v* \
| sort -V \
| head -n -1 \
| sort -Vr
)"
Expand Down

0 comments on commit 337b596

Please sign in to comment.