friendica-github/.woodpecker/.license_check.yml
Tobias Diekershoff f19b14bd88 added SPDX header information to some files
In the end of this progress Friendica will hopefully be [REUSE](https://reuse.software) complient but this is a longterm goal.
2024-08-23 08:23:28 +02:00

15 lines
604 B
YAML

# SPDX-FileCopyrightText: 2010 - 2024 the Friendica project
#
# SPDX-License-Identifier: CC0-1.0
steps:
check:
image: friendicaci/php-cs
commands:
- 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
- /check-license.sh