Skip to content

Commit

Permalink
combine scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
nl32 committed Oct 14, 2024
1 parent 58b56af commit d529c76
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 9 deletions.
4 changes: 3 additions & 1 deletion .github/workflows/generateCheck.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
if [ -z "${files}" ]; then
files=$(npx prettier . -l)
status=$?
if [ status == 0 ]; then
echo "## Formatting Check passed 🥳" >>$GITHUB_STEP_SUMMARY
echo "All files are formatted correctly" >>$GITHUB_STEP_SUMMARY
exit 0
Expand Down
9 changes: 1 addition & 8 deletions .github/workflows/prettierCheck.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,5 @@ jobs:
cache: 'npm'
- name: Run npm install
run: npm ci
- name: Run prettier
id: prettier
continue-on-error: true
run: |
export files=`npx prettier . -l`
- name: generate errors/summary
- name: Run prettier & generate problems
run: .github/workflows/generateCheck.sh
env:
status: ${{ steps.prettier.outcome }}

0 comments on commit d529c76

Please sign in to comment.