SleePy Public Git Projects
Repositories
Main Site
GitHub Profile
smfmod_sfs
Code
Commits
Branches
Tags
Search
Tree:
d93bbb0
Branches
Tags
master
Test
v.1.5.3
v0.9
v1.0
v1.1
v1.2
v1.3
v1.4
v1.5
v1.5.1
v1.5.2
v1.5.3
v1.5.4
v1.5.5
smfmod_sfs
.github
workflows
php-cs-fixer.yml
Bump to 1.5.4
jdarwood007
commited
d93bbb0
at 2024-02-03 15:37:20
php-cs-fixer.yml
Blame
History
Raw
on: push: branches: - release-2.1 pull_request: name: PHP Check jobs: php-cs-fixer: name: PHP-CS-Fixer runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 - name: Get changed files id: changed-files uses: tj-actions/changed-files@v42 - name: Get extra arguments for PHP-CS-Fixer id: phpcs-intersection run: | CHANGED_FILES=$(echo "${{ steps.changed-files.outputs.all_changed_and_modified_files }}" | tr ' ' '\n') if ! echo "${CHANGED_FILES}" | grep -qE "^(\\.php-cs-fixer(\\.dist)?\\.php|composer\\.lock)$"; then EXTRA_ARGS=$(printf -- '--path-mode=intersection\n--\n%s' "${CHANGED_FILES}"); else EXTRA_ARGS=''; fi echo "PHPCS_EXTRA_ARGS<<EOF" >> $GITHUB_ENV echo "$EXTRA_ARGS" >> $GITHUB_ENV echo "EOF" >> $GITHUB_ENV - name: PHP-CS-Fixer uses: docker://oskarstark/php-cs-fixer-ga with: args: --config=.php-cs-fixer.dist.php -v --dry-run --stop-on-violation --using-cache=no ${{ env.PHPCS_EXTRA_ARGS }}"