Signed-off-by: Itxaka <itxaka@kairos.io>
This commit is contained in:
Itxaka 2025-03-16 13:13:41 +01:00
parent efdea432f7
commit 762e1a6e09
No known key found for this signature in database
GPG Key ID: FF934753A9D6AC56

View File

@ -15,8 +15,10 @@ jobs:
- name: Get changed files
id: changed-files
run: |
# Get the list of files that were changed between the base branch and the current commit
CHANGED_FILES=$(git diff --name-only origin/$GITHUB_BASE_REF...HEAD | grep "^packages/**")
# Get the merge base (common ancestor) of the PR
MERGE_BASE=$(git merge-base origin/${{ github.base_ref }} HEAD)
# only valid for PRs
CHANGED_FILES=$(git diff --name-only $MERGE_BASE | grep "^packages/**")
if echo "$CHANGED_FILES"; then
echo "any_changed=true" >> $GITHUB_OUTPUT