Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] Process completed with exit code 1 #116

Open
zethuman opened this issue Mar 23, 2023 · 5 comments
Open

[BUG] Process completed with exit code 1 #116

zethuman opened this issue Mar 23, 2023 · 5 comments
Labels
bug Something isn't working

Comments

@zethuman
Copy link

What exactly happened?
Action is failed

image

Configuration file:

      - name: Prettify markdown code
        uses: creyD/[email protected]
        with:
          dry: true
          prettier_options: --check --write --prose-wrap always **/*.md
          clean_node_folder: false

What should've happened?
Success action complete

Where did you encounter the problem?

@zethuman zethuman added the bug Something isn't working label Mar 23, 2023
@zethuman zethuman changed the title [BUG] [BUG] Process completed with exit code 1 Mar 23, 2023
@timsu92
Copy link

timsu92 commented Mar 28, 2023

@creyD
Copy link
Owner

creyD commented Mar 29, 2023

@timsu92 Thanks! @zethuman Yes I suppose this is expected, depending on your inputs. It seems like you have changes prettier would like to make, so it fails in a dry run. If there would be no outstanding changes, it should move through.

@creyD
Copy link
Owner

creyD commented Jun 30, 2023

@zethuman Do you still consider this a bug?

@igitur
Copy link

igitur commented Jul 10, 2023

Duplicate of #124?

@igitur
Copy link

igitur commented Jul 11, 2023

This is caused by breaking changes in prettier v3. Use the prettier_version option to pin the prettier version to 2.x.x.
Example at https://github.com/cwackerfuss/react-wordle/blob/5f6f622be86c40e8a46c8123cc98c3d6ca8719eb/.github/workflows/lint.yml#L17

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

4 participants