friendica-github/.woodpecker/.license_check.yml

12 lines
509 B
YAML
Raw Normal View History

2022-01-06 20:54:40 +00:00
pipeline:
check:
image: friendicaci/php-cs
commands:
2022-01-06 21:31:55 +00:00
- 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 -i '\.php$' | cut -f2)";
else
export CHANGED_FILES="$(git diff --name-status ${CI_COMMIT_SHA} | grep -i '\.php$' | cut -f2)";
fi
2022-01-06 20:54:40 +00:00
- /check-license.sh