creyD / prettier_action

GitHub action for running prettier on your projects pull requests
MIT License
276 stars 87 forks source link

What is status code 128? #131

Open adityaraute opened 10 months ago

adityaraute commented 10 months ago

I'm very new to this. I don't understand what this action is doing in this particular execution. What does a status code of 128 mean and why is the job failing? I cannot find any documentation either.

image

Please assist.

creyD commented 9 months ago

Please specify your yaml for using this action

creyD commented 9 months ago

Please try like this and see if the output changes:

name: Prettier Action

on:
  push

jobs:
  prettier:
    runs-on: ubuntu-latest

    steps:
      - name: Checkout
        uses: actions/checkout@v4
        with:
          ref: ${{ github.head_ref }}

      - name: Prettify code
        uses: creyD/prettier_action@v4.3
adityaraute commented 9 months ago

I think it worked in the end by specifying remote, etc. Think we can improve the error message or documentation in any way?

creyD commented 9 months ago

I don't exactly know what the issue is so we can't for now. Could you please provide the neccessary details?

adityaraute commented 9 months ago

I had to add this chunk in the workflow for this to work. - name: Commit URL run: git remote set-url origin https://github-actions:${{github.token}}@github.com/<repo-URL>

Not sure if this helps.