From eebbacba8ccc646b0bd557e657f6b1025dd26da7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=BA=90=E6=96=87=E9=9B=A8?= <41315874+fumiama@users.noreply.github.com> Date: Sun, 16 Apr 2023 11:29:57 +0800 Subject: [PATCH] fix(workflow): pull format (#70) --- .github/workflows/{black_PR.yml => pull_format.yml} | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) rename .github/workflows/{black_PR.yml => pull_format.yml} (82%) diff --git a/.github/workflows/black_PR.yml b/.github/workflows/pull_format.yml similarity index 82% rename from .github/workflows/black_PR.yml rename to .github/workflows/pull_format.yml index 86395a4..1a3f9ca 100644 --- a/.github/workflows/black_PR.yml +++ b/.github/workflows/pull_format.yml @@ -12,16 +12,22 @@ jobs: continue-on-error: true steps: - uses: actions/checkout@v3 + with: + ref: ${{ github.head_ref }} + - name: Set up Python ${{ matrix.python-version }} uses: actions/setup-python@v4 with: python-version: ${{ matrix.python-version }} - - name: Install black + + - name: Install Black run: pip install black - - name: run black + + - name: Run Black # run: black $(git ls-files '*.py') run: black . - - name: AutoCommit + + - name: Commit Back uses: stefanzweifel/git-auto-commit-action@v4 with: commit_message: Apply Code Formatter Change