Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 14 additions & 0 deletions .github/workflows/release-please.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,20 @@ jobs:
config-file: release-please-config.json
manifest-file: .release-please-manifest.json

# GitHub marks the newest release "Latest", so a builder release would take the badge from the core package.
# Give it back to the newest core release (tags v<version>); a core release in the same run is that release.
- name: Keep the core release as Latest
if: steps.release.outputs['src--release_created'] == 'true'
env:
GH_TOKEN: ${{ github.token }}
GH_REPO: ${{ github.repository }}
run: |
tag=$(gh release list --exclude-drafts --exclude-pre-releases --limit 100 --json tagName \
--jq '[.[] | select(.tagName | test("^v[0-9]"))][0].tagName')
if [ -n "$tag" ]; then
gh release edit "$tag" --latest
fi

publish:
if: needs.release-please.outputs.release_created == 'true'
needs: release-please
Expand Down
Loading