Skip to content
Merged
Show file tree
Hide file tree
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
8 changes: 8 additions & 0 deletions .github/workflows/maven-cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,14 @@ jobs:
with:
fetch-depth: 0

- name: Verify tag commit is reachable from master
run: |
if ! git merge-base --is-ancestor "${{ github.sha }}" origin/master; then
echo "❌ Tag commit ${{ github.sha }} is not reachable from origin/master"
exit 1
fi
echo "✅ Tag commit ${{ github.sha }} is reachable from origin/master"

- name: Extract and validate tag components
id: tag
run: |
Expand Down
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,9 @@ Release names follow the **historic football clubs** naming convention (A–Z):
in-memory with `ddl.sql`/`dml.sql`; switch `spring.jpa.hibernate.ddl-auto`
from `none` to `validate` so Hibernate verifies entity mappings against the
Flyway-managed schema (#130)
- Add runtime verification step to the CD workflow that checks whether the tag
commit is reachable from `origin/master` before proceeding with build and
publish steps, preventing accidental releases from unmerged branches (#292)

### Changed

Expand Down
Loading