mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-09-24 22:48:18 +00:00
23
.github/workflows/release.yml
vendored
23
.github/workflows/release.yml
vendored
@@ -59,7 +59,28 @@ jobs:
|
|||||||
git config user.email release@firefly-iii.org
|
git config user.email release@firefly-iii.org
|
||||||
git config advice.addIgnoredFile false
|
git config advice.addIgnoredFile false
|
||||||
git config push.autoSetupRemote true
|
git config push.autoSetupRemote true
|
||||||
- name: crowdin action
|
- name: Lint PHP
|
||||||
|
run: |
|
||||||
|
php_lint_file()
|
||||||
|
{
|
||||||
|
local php_file="$1"
|
||||||
|
php -l "$php_file" &> /dev/null
|
||||||
|
if [ "$?" -ne 0 ]
|
||||||
|
then
|
||||||
|
echo -e "[FAIL] $php_file"
|
||||||
|
return 1
|
||||||
|
fi
|
||||||
|
}
|
||||||
|
|
||||||
|
export -f php_lint_file
|
||||||
|
|
||||||
|
find . -path ./vendor -prune -o -name '*.php' | parallel -j 4 php_lint_file {}
|
||||||
|
|
||||||
|
if [ "$?" -ne 0 ]
|
||||||
|
then
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
- name: Crowdin action
|
||||||
uses: crowdin/github-action@v2
|
uses: crowdin/github-action@v2
|
||||||
with:
|
with:
|
||||||
upload_sources: true
|
upload_sources: true
|
||||||
|
Reference in New Issue
Block a user