-
Notifications
You must be signed in to change notification settings - Fork 146
Closed
Description
I have this output in my github actions logs
Run wearerequired/lint-action@v2
Adding auth information to Git remote URL
Fetching remote branch "fix/update-github-actions"
From https://github.com/pixelfusion/pixel-fusion-website
Switching to the "fix/update-github-actions" branch
* branch fix/update-github-actions -> FETCH_HEAD
* [new branch] fix/update-github-actions -> origin/fix/update-github-actions
Previous HEAD position was 5ee48b0 Merge bd014578fc61895ad36dd762fa84af3b86707a4d into 51e708d45eb4a3a2e3ea44b2486715881f077d5d
Switched to branch 'fix/update-github-actions'
SHA of last commit is "bd014578fc61895ad36dd762fa84af3b86707a4d"
Run Prettier
Verifying setup for Prettier…
Verified Prettier setup
Will use Prettier to check the files with extensions css,html,js,json,jsx,md,sass,scss,ts,tsx,vue,yaml,yml
Linting files in /home/runner/work/pixel-fusion-website/pixel-fusion-website with Prettier …
Error: src/components/Icon/Icon.stories.tsx: SyntaxError: ',' expected. (32:3)
Error: 30 | },
Error: 31 | },
Error: > 32 | } satisfies Meta<typeof Icon>
Prettier found 1 error (failure)
Error: | ^
Error: 33 |
Error: 34 | export default meta
Error: 35 | type Story = StoryObj<typeof Icon>
Create check runs with commit annotations
Creating GitHub check with failure conclusion and 1 annotations for Prettier…
Error: Received status code 422. Validation Failed https://docs.github.com/rest/checks/runs#create-a-check-run
Warning: Some check runs could not be created.
Here is the job for this check
prettier:
name: Check prettier
runs-on: ubuntu-latest
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
steps:
- name: Check out git repository
uses: actions/checkout@v3
- name: Set up Node.js
uses: actions/setup-node@v3
with:
node-version: 18
- name: Install Node.js dependencies
run: npm ci
- name: Code linting
uses: wearerequired/lint-action@v2
with:
prettier: true
Any idea why we are getting Validation Failed on the check creation? It seems to be lint-action is generating a bad api payload, but I'm not sure how to debug this.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels
Type
Fields
Give feedbackNo fields configured for issues without a type.