Skip to content

chore: run prettier

chore: run prettier #1

Workflow file for this run

name: Lint
on: workflow_call
permissions:
contents: write
jobs:
prettier:
timeout-minutes: 30
runs-on: ubuntu-latest
container:
image: node:18.15.0-alpine
steps:
- name: Install git
run: apk add git
- uses: actions/checkout@v4
with:
ref: ${{ github.event.pull_request.head.ref }}
fetch-depth: 0
- name: Install dependencies
run: npm ci --ignore-scripts
- name: Run prettier check
id: prettier_check
continue-on-error: true
run: |
trap 'echo "PRETTIER_EXIT_CODE=$?" >> $GITHUB_OUTPUT' EXIT; npm run prettify:check
- name: Fail if there no auto fix
if: steps.prettier_check.outputs.PRETTIER_EXIT_CODE == 2
run: exit 2

Check failure on line 30 in .github/workflows/lint.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/lint.yml

Invalid workflow file

You have an error in your yaml syntax on line 30
- name: Run prettier
id: prettier_run
if: steps.prettier_check.outputs.PRETTIER_EXIT_CODE == 1
run: |
json='{"commit_id": "b8f2b8b", "environment": "test", "tags_at_commit": "sometags", "project": "someproject", "current_date": "09/10/2014", "version": "someversion"}' && echo "$json" > versions.json
- uses: actions/upload-artifact@v4
name: status