mirror of
https://github.com/kairos-io/packages.git
synced 2025-08-10 18:41:38 +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
|
- name: Get changed files
|
||||||
id: changed-files
|
id: changed-files
|
||||||
run: |
|
run: |
|
||||||
# Get the list of files that were changed between the base branch and the current commit
|
# Get the merge base (common ancestor) of the PR
|
||||||
CHANGED_FILES=$(git diff --name-only origin/$GITHUB_BASE_REF...HEAD | grep "^packages/**")
|
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
|
if echo "$CHANGED_FILES"; then
|
||||||
echo "any_changed=true" >> $GITHUB_OUTPUT
|
echo "any_changed=true" >> $GITHUB_OUTPUT
|
||||||
|
Loading…
Reference in New Issue
Block a user