Skip to content

Running formatting check #85

Running formatting check

Running formatting check #85

Workflow file for this run

name: Formatting Check
run-name: Running formatting check
on: [push]
jobs:
check-formatting:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 18
cache: 'npm'
- name: Run npm install
run: |
mv package.json package.json.bak
npm i --no-save prettier prettier-plugin-tailwindcss
mv package.json.bak package.json
- name: Run prettier
id: prettier
continue-on-error: true
run: |
echo "files=${npx prettier . -l}">> "$GITHUB_ENV"
- name: generate errors/summary
run: .github/workflows/generateCheck.sh
env:
status: ${{ success() && 0 || 1 }}

Check failure on line 26 in .github/workflows/prettierCheck.yml

View workflow run for this annotation

GitHub Actions / Formatting Check

Invalid workflow file

The workflow is not valid. .github/workflows/prettierCheck.yml (Line: 26, Col: 19): Unrecognized function: 'success'. Located at position 1 within expression: success() && 0 || 1