Skip to content

- test actions with new checkout logic #16

- test actions with new checkout logic

- test actions with new checkout logic #16

Workflow file for this run

name: Autoformat
on:
issue_comment:
types: [created, edited]
jobs:
auto-format:
# 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.html_url, '/pull/')
name: auto-format
runs-on: ubuntu-latest
steps:
- uses: xt0rted/pull-request-comment-branch@v2
id: comment-branch
- uses: actions/checkout@v3
if: success()
with:
ref: ${{ steps.comment-branch.outputs.head_ref }}
- name: Lint with black
uses: psf/black@stable
with:
options: "--verbose"
src: "."
jupyter: true
- name: Commit changes
uses: stefanzweifel/git-auto-commit-action@v5