From c79cac3d9c169a827c18684c6a4357ec50c6149f Mon Sep 17 00:00:00 2001 From: jaredliw Date: Fri, 23 Jul 2021 23:43:37 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E9=94=99=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/main.yml | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 93b5e41..09531e7 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -2,9 +2,9 @@ name: Format files on: push: - branches: [ master ] + branches: [ main ] pull_request: - branches: [ master ] + branches: [ main ] workflow_dispatch: jobs: @@ -20,14 +20,13 @@ jobs: run: npm install --save-dev --save-exact prettier - name: Format files - run: prettier --write . + run: node_modules/.bin/prettier --write README.md animation-simulation/ - name: Commit files run: | git config --local user.email "41898282+github-actions[bot]@users.noreply.github.com" git config --local user.name "github-actions[bot]" - git add . - git commit -m "代码重构 【Github Actions】" + git commit -am "代码重构 【Github Actions】" - name: Push changes uses: ad-m/github-push-action@master