Notification texts go here Contact Us Buy Now!

black formatter complains that a file should be formatted but fails to do so

The error message suggests that the reviewdog action is trying to access the is_formatted output of the black formatter action, but the black formatter action does not have an id defined.

To fix this, you need to add an id to the black formatter action, like so:

``` - name: black formatter uses: rickstaa/action-black@v1 id: black_formatter with: black_args: ". --check" ```

Once you have added the id, you can then use it in the reviewdog action, like so:

``` - name: Annotate diff changes using reviewdog if: steps.black_formatter.outputs.is_formatted == 'true' /// black_formatter is the id of the previous step as your example uses: reviewdog/action-suggester@v1 with: tool_name: blackfmt ```

Post a Comment

Cookie Consent
We serve cookies on this site to analyze traffic, remember your preferences, and optimize your experience.
Oops!
It seems there is something wrong with your internet connection. Please connect to the internet and start browsing again.
AdBlock Detected!
We have detected that you are using adblocking plugin in your browser.
The revenue we earn by the advertisements is used to manage this website, we request you to whitelist our website in your adblocking plugin.
Site is Blocked
Sorry! This site is not available in your country.