mirror of
https://github.com/kairos-io/packages.git
synced 2025-04-27 19:05:22 +00:00
Fix
Signed-off-by: Itxaka <itxaka@kairos.io>
This commit is contained in:
parent
efdea432f7
commit
762e1a6e09
6
.github/workflows/pr.yaml
vendored
6
.github/workflows/pr.yaml
vendored
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user