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

Github Actions "prettier-action" throws error #104

Open
1 task done
vaibhavTekk opened this issue Oct 3, 2023 · 1 comment · May be fixed by #115
Open
1 task done

Github Actions "prettier-action" throws error #104

vaibhavTekk opened this issue Oct 3, 2023 · 1 comment · May be fixed by #115
Labels
bug Something isn't working good first issue Good for newcomers hacktoberfest-accepted

Comments

@vaibhavTekk
Copy link
Member

Description

This repo uses prettier-action to use prettier and format the code to maintain consistency across the codebase, but currently it's broken and now checks are failing.

Documentation and resources:
https://github.com/creyD/prettier_action#problem-with-npm-v9-19022023

Expected Behaviour

prettier Checks should pass successfully on pull requests.

What happened?

Automated checks for the pull request fails when it occurs

image

Version

npm v9

What browsers are you seeing the problem on?

No response

Relevant log output

Run creyD/[email protected]
  with:
    dry: true
    prettier_options: --check **/*.{js,md}
    commit_message: Prettified Code!
    same_commit: false
    file_pattern: *
    prettier_version: false
    working_directory: false
    only_changed: false
    github_token: ***
Run PATH=$(cd $GITHUB_ACTION_PATH; npm bin):$PATH /home/runner/work/_actions/creyD/prettier_action/v4.2/entrypoint.sh
  PATH=$(cd $GITHUB_ACTION_PATH; npm bin):$PATH /home/runner/work/_actions/creyD/prettier_action/v4.2/entrypoint.sh
  shell: /usr/bin/bash --noprofile --norc -e -o pipefail {0}
  env:
    INPUT_COMMIT_MESSAGE: Prettified Code!
    INPUT_COMMIT_DESCRIPTION: 
    INPUT_SAME_COMMIT: false
    INPUT_COMMIT_OPTIONS: 
    INPUT_FILE_PATTERN: *
    INPUT_PRETTIER_OPTIONS: --check **/*.{js,md}
    INPUT_DRY: true
    INPUT_PRETTIER_VERSION: false
    INPUT_ONLY_CHANGED: false
    INPUT_PRETTIER_PLUGINS: 
    INPUT_WORKING_DIRECTORY: false
    INPUT_GITHUB_TOKEN: ***
Installing prettier...
Prettifying files...
Files:
/home/runner/work/_actions/creyD/prettier_action/v4.2/entrypoint.sh: line 74: prettier: command not found
Problem running prettier with --check **/*.{js,md}
Error: Process completed with exit code 1.

Code of Conduct

  • I agree to follow this project's Code of Conduct
@vaibhavTekk vaibhavTekk added bug Something isn't working good first issue Good for newcomers hacktoberfest-accepted labels Oct 3, 2023
@Arjun31415
Copy link
Contributor

You need to update the github actions for this

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working good first issue Good for newcomers hacktoberfest-accepted
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants