mirror of
https://git.friendi.ca/friendica/friendica-addons.git
synced 2024-11-21 22:23:41 +00:00
Fixing CI Changed_Files
This commit is contained in:
parent
1b87105bb8
commit
d1bac4f620
1 changed files with 6 additions and 1 deletions
|
@ -55,7 +55,12 @@ pipeline:
|
|||
image: friendicaci/php-cs
|
||||
commands:
|
||||
- cd addon/
|
||||
- export CHANGED_FILES="$(git diff --name-status ${CI_PREV_COMMIT_SHA}..${CI_COMMIT_SHA} | grep ^A | cut -f2 | sed -e "s/^/addon\\//")"
|
||||
- if [ ! -z "$${CI_COMMIT_PULL_REQUEST}" ]; then
|
||||
git fetch --no-tags origin ${CI_COMMIT_TARGET_BRANCH};
|
||||
export CHANGED_FILES="$(git diff --name-status $(git merge-base FETCH_HEAD origin/${CI_COMMIT_TARGET_BRANCH})..${CI_COMMIT_SHA} | grep ^A | cut -f2 | sed -e "s/^/addon\\//")";
|
||||
else
|
||||
export CHANGED_FILES="$(git diff --name-status ${CI_COMMIT_SHA} | grep ^A | cut -f2 | sed -e "s/^/addon\\//")";
|
||||
fi
|
||||
- cd ../
|
||||
- /check-php-cs.sh
|
||||
when:
|
||||
|
|
Loading…
Reference in a new issue