Skip to content

remove php-cs-fixer because it doesn't support mixed html/php #4

remove php-cs-fixer because it doesn't support mixed html/php

remove php-cs-fixer because it doesn't support mixed html/php #4

Workflow file for this run

name: lint
on: [push, pull_request]
jobs:
linting:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Node.js for prettier
uses: actions/setup-node@v4
with:
node-version: '20'
- name: Install & Run Prettier
run: npm install prettier --save-dev && npx prettier --write assets/js/*.js
- name: Check for modified files
id: git-check
run: echo "modified=$(if git diff-index --quiet HEAD --; then echo "false"; else echo "true"; fi)" >> $GITHUB_OUTPUT
- name: Push changes
if: steps.git-check.outputs.modified == 'true'
run: |
git remote set-url origin https://x-access-token:${{ secrets.GITHUB_TOKEN }}@github.com/${{ github.repository }}
git commit -am "Linted changes"
git push --set-upstream origin CICDSupport
git push