]> git.mxchange.org Git - friendica.git/blob - .woodpecker/.license_check.yml
We now store the violation as well
[friendica.git] / .woodpecker / .license_check.yml
1 pipeline:
2   check:
3     image: friendicaci/php-cs
4     commands:
5       - if [ ! -z "$${CI_COMMIT_PULL_REQUEST}" ]; then
6           git fetch --no-tags origin ${CI_COMMIT_TARGET_BRANCH};
7           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)";
8         else
9           export CHANGED_FILES="$(git diff --name-status ${CI_COMMIT_SHA} | grep -i '\.php$' | cut -f2)";
10         fi
11       - /check-license.sh