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