mirror of
https://github.com/logto-io/logto.git
synced 2024-12-16 20:26:19 -05:00
fix: update the alteration change detection script (#5206)
diff the merge base changes only
This commit is contained in:
parent
96fe93225e
commit
9bcbcc2d24
1 changed files with 2 additions and 1 deletions
|
@ -26,7 +26,8 @@ jobs:
|
|||
- name: Check for alteration changes
|
||||
id: changes-detection
|
||||
run: |
|
||||
CHANGE_FILES=$(git diff --name-only HEAD..origin/${{github.base_ref}} | grep 'packages/schemas/alterations/' || true)
|
||||
MERGE_BASE=$(git merge-base origin/${{github.base_ref}} HEAD)
|
||||
CHANGE_FILES=$(git diff --name-only $MERGE_BASE | grep 'packages/schemas/alterations/' || true)
|
||||
if [ -n "$CHANGE_FILES" ]; then
|
||||
echo "$CHANGE_FILES"
|
||||
echo "::set-output name=has-alteration-changes::true"
|
||||
|
|
Loading…
Reference in a new issue