From f97bfc039f1d201a8c2b91f089a153a89157dd55 Mon Sep 17 00:00:00 2001 From: YiFang Xiao Date: Wed, 19 Jul 2023 21:13:40 +0800 Subject: [PATCH] action: clang format --- .github/workflows/auto format.yml | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/.github/workflows/auto format.yml b/.github/workflows/auto format.yml index 6216e75d..113a57e1 100644 --- a/.github/workflows/auto format.yml +++ b/.github/workflows/auto format.yml @@ -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