Skip to content

Commit

Permalink
fix(workflow): make ci happy
Browse files Browse the repository at this point in the history
  • Loading branch information
fumiama committed Jul 10, 2024
1 parent 2dc1a6a commit c31ec39
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions .github/workflows/pull-format.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,11 +51,10 @@ jobs:
continue-on-error: true

steps:
- name: Checkout
continue-on-error: true
uses: actions/checkout@v4
with:
ref: ${{ github.event.pull_request.head.sha }}
- name: Checkout PR # see https://github.com/orgs/community/discussions/24945
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: gh pr checkout ${{ github.event.pull_request.number }}

- name: Set up Python
uses: actions/setup-python@v5
Expand All @@ -68,10 +67,12 @@ jobs:
run: black .

- name: Commit back
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
continue-on-error: true
run: |
git config --local user.name 'github-actions[bot]'
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 origin HEAD:${{ github.event.pull_request.head.sha }}
git push

0 comments on commit c31ec39

Please sign in to comment.