mirror of
https://github.com/xiaoyifang/goldendict-ng.git
synced 2024-11-24 00:14:06 +00:00
action: clang format
This commit is contained in:
parent
fc1b01bd6e
commit
f97bfc039f
7
.github/workflows/auto format.yml
vendored
7
.github/workflows/auto format.yml
vendored
|
@ -21,8 +21,8 @@ jobs:
|
||||||
- uses: actions/checkout@v3.5.2
|
- uses: actions/checkout@v3.5.2
|
||||||
with:
|
with:
|
||||||
# check out HEAD on the branch
|
# check out HEAD on the branch
|
||||||
ref: ${{ github.head_ref }}
|
# ref: ${{ github.head_ref }}
|
||||||
repository: ${{github.event.pull_request.head.repo.full_name}}
|
# repository: ${{github.event.pull_request.head.repo.full_name}}
|
||||||
# make sure the parent commit is grabbed as well, because
|
# make sure the parent commit is grabbed as well, because
|
||||||
# that's what will get formatted (i.e. the most recent commit)
|
# that's what will get formatted (i.e. the most recent commit)
|
||||||
fetch-depth: 2
|
fetch-depth: 2
|
||||||
|
@ -50,8 +50,7 @@ jobs:
|
||||||
with:
|
with:
|
||||||
node-version: 16
|
node-version: 16
|
||||||
|
|
||||||
- run: |
|
- run: npm ci
|
||||||
npm ci
|
|
||||||
- run: npx prettier --write src/stylesheets src/scripts/gd-*.js
|
- run: npx prettier --write src/stylesheets src/scripts/gd-*.js
|
||||||
# Optimize all PNGs with https://pngquant.org/
|
# Optimize all PNGs with https://pngquant.org/
|
||||||
# - run: sudo apt-get update && sudo apt-get install -y pngquant
|
# - run: sudo apt-get update && sudo apt-get install -y pngquant
|
||||||
|
|
Loading…
Reference in a new issue