Skip to content

Commit

Permalink
- change commit logic
Browse files Browse the repository at this point in the history
  • Loading branch information
MarcelRosier committed Dec 12, 2023
1 parent 3965165 commit cb406e3
Showing 1 changed file with 3 additions and 8 deletions.
11 changes: 3 additions & 8 deletions .github/workflows/autoformat.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ jobs:
# Check if the comment contains the trigger /format-action.
# Check if the comments come from pull request, exclude those from issue.
if: |
contains(github.event.comment.body, '/format-action') &&
contains(github.event.comment.body, '@format-action') &&
contains(github.event.comment.html_url, '/pull/')
name: auto-format
runs-on: ubuntu-latest
Expand All @@ -22,10 +22,5 @@ jobs:
options: "--verbose"
src: "."
jupyter: true
- name: Push auto format changes
run: |
git config --local user.email "[email protected]"
git config --local user.name "GitHub Actions"
git add .
git commit -m "Auto-format code with black performed by GitHub Action"
git push origin ${{ github.head_ref }}
- name: Commit changes
uses: stefanzweifel/git-auto-commit-action@v5

0 comments on commit cb406e3

Please sign in to comment.