action: clang format

This commit is contained in:
YiFang Xiao 2023-07-19 21:13:40 +08:00
parent fc1b01bd6e
commit f97bfc039f

View file

@ -21,8 +21,8 @@ jobs:
- uses: actions/checkout@v3.5.2
with:
# check out HEAD on the branch
ref: ${{ github.head_ref }}
repository: ${{github.event.pull_request.head.repo.full_name}}
# ref: ${{ github.head_ref }}
# repository: ${{github.event.pull_request.head.repo.full_name}}
# make sure the parent commit is grabbed as well, because
# that's what will get formatted (i.e. the most recent commit)
fetch-depth: 2
@ -50,8 +50,7 @@ jobs:
with:
node-version: 16
- run: |
npm ci
- run: npm ci
- run: npx prettier --write src/stylesheets src/scripts/gd-*.js
# Optimize all PNGs with https://pngquant.org/
# - run: sudo apt-get update && sudo apt-get install -y pngquant