Introduce release branch (#2391)
Co-authored-by: acx10 <acx10@users.noreply.github.com>
This commit is contained in:
@@ -32,7 +32,8 @@ jobs:
|
||||
id: check_migrations
|
||||
run: |
|
||||
echo "Comparing ${{ inputs.base_ref }}...${{ inputs.head_ref }}"
|
||||
if git diff --name-only ${{ inputs.base_ref }}...${{ inputs.head_ref }} | grep -q "booklore-api/src/main/resources/db/migration/V.*.sql"; then
|
||||
# Use explicit regex: V followed by digits, then double underscore, then any name, ending in .sql
|
||||
if git diff --name-only ${{ inputs.base_ref }}...${{ inputs.head_ref }} | grep -qE "booklore-api/src/main/resources/db/migration/V[0-9]+__.*\.sql"; then
|
||||
echo "Migration file changes detected. Proceeding with migration preview."
|
||||
echo "has_migrations=true" >> $GITHUB_OUTPUT
|
||||
else
|
||||
|
||||
Reference in New Issue
Block a user