Skip to content

Commit

Permalink
fix(workflow): pull black format
Browse files Browse the repository at this point in the history
  • Loading branch information
fumiama committed Jul 10, 2024
1 parent 00b2dfd commit 34a01e4
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/pull-format.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: Check Pull Request Format

on:
pull_request_target:
types: [opened, reopened]
types: [opened, reopened, synchronize]

jobs:
# This workflow closes invalid PR
Expand Down Expand Up @@ -57,10 +57,10 @@ jobs:
with:
ref: ${{ github.event.pull_request.head.sha }}

- name: Set up Python ${{ matrix.python-version }}
- name: Set up Python 3.10
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
python-version: 3.10

- name: Install Black
run: pip install "black[jupyter]"
Expand All @@ -76,4 +76,4 @@ jobs:
git config --local user.email 'github-actions[bot]@users.noreply.github.com'
git add --all
git commit -m "chore(format): run black on ${{github.ref_name}}"
git push
git push origin HEAD:${{ github.event.pull_request.head.sha }}

0 comments on commit 34a01e4

Please sign in to comment.