Skip to content

Commit

Permalink
Fix error msg printing
Browse files Browse the repository at this point in the history
  • Loading branch information
anataliocs committed Jan 22, 2025
1 parent a982a24 commit 4452228
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ jobs:

- name: Show diff if Prettier fails
if: ${{ failure() }}
run: yarn diff:mdx | awk '/diff/ {found=1} found {print}'
run: yarn diff:mdx && echo ::error:: Prettier static analysis failed && exit 1

- name: Copy Files From Stellar CLI
run: yarn stellar-cli:build
Expand Down
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,10 @@
"write-translations": "docusaurus write-translations",
"write-heading-ids": "docusaurus write-heading-ids",
"format:mdx": "prettier --config .prettierrc.js --write \"{docs,src/pages,platforms,meeting-notes}/**/*.{md,mdx}\"",
"ci-format:mdx": "prettier --config .prettierrc.js --write --log-level silent \"{docs,src/pages,platforms,meeting-notes}/**/*.{md,mdx}\"",
"check:mdx": "prettier --config .prettierrc.js -c \"{docs,src/pages,platforms,meeting-notes}/**/*.{md,mdx}\"",
"ci:mdx": "prettier --config .prettierrc.js \"{docs,src/pages,platforms,meeting-notes}/**/*.{md,mdx}\" -l --no-editorconfig",
"diff:mdx": "yarn format:mdx && git diff -- . ':(exclude)package-lock.json' ':(exclude)package.json' ':(exclude)yarn.lock' | cat",
"diff:mdx": "yarn ci-format:mdx && git diff -- . ':(exclude)package-lock.json' ':(exclude)package.json' ':(exclude)yarn.lock' | awk \"/diff --git/ {found=1} found {print}\"",
"lint:fix": "eslint \"src/**/*.{js,jsx,ts,tsx}\" --fix",
"lint": "eslint \"src/**/*.{js,jsx,ts,tsx}\"",
"prepare": "husky",
Expand Down

0 comments on commit 4452228

Please sign in to comment.