mirror of
https://github.com/Alfresco/alfresco-transform-core.git
synced 2025-05-12 17:04:48 +00:00
* ACS-8920 Test empty commit * ACS-8920 Test empty commit * ACS-8920 Test empty commit * ACS-8920 Test empty commit * ACS-8920 Pre-commit job should fail * Revert "ACS-8920 Pre-commit job should fail" This reverts commit 80516b76d436c5cb479c8c9edfe3c42edc9131e6. * ACS-8920 Test empty commit * ACS-8920 Remove temporary condition
24 lines
513 B
Bash
Executable File
24 lines
513 B
Bash
Executable File
#!/usr/bin/env bash
|
|
|
|
if [[ -z ${GITHUB_MODIFIED_FILES} ]]
|
|
then
|
|
modified_files=$(git diff --cached --name-only --diff-filter=ACMR)
|
|
else
|
|
modified_files=${GITHUB_MODIFIED_FILES}
|
|
fi
|
|
|
|
if [[ -z ${modified_files} ]]
|
|
then
|
|
echo "No modified files, exiting."
|
|
exit 0
|
|
fi
|
|
|
|
include_list=""
|
|
for file in ${modified_files}
|
|
do
|
|
include_list="${include_list},${file}"
|
|
done
|
|
include_list=${include_list:1}
|
|
|
|
mvn spotless:apply validate -DlicenseUpdateHeaders=true -Dspotless-include-list="${include_list}" > /dev/null || true
|