Skip to content

GitHub Action fails #3953

@huhlim

Description

@huhlim

Describe the bug
GitHub Action fails with the latest version, 23.10.0. If I specify a version (e.g., 23.9.0), it works fine.
I have been using the GitHub Action snippet as described on this page.

To Reproduce

For example, take this code:

name: Lint

on: [push, pull_request]

jobs:
  lint:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v3
      - uses: psf/black@stable
        with:
          options: "--check --verbose"

The resulting error is:
The GitHub Action raises an error.
스크린샷 2023-10-17 오후 5 40 45

Expected behavior
If I specify a black version like this, it works fine.

name: Lint

on: [push, pull_request]

jobs:
  lint:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v3
      - uses: psf/black@23.9.1
        with:
          options: "--check --verbose"

Environment

  • Black's version: psf/black@stable (or 23.10.0)
  • OS and Python version: GitHub Action

Additional context

Metadata

Metadata

Assignees

No one assigned

    Labels

    T: bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions