diff --git a/.github/workflows/generateCheck.sh b/.github/workflows/generateCheck.sh index a8f1a38..75e2c76 100755 --- a/.github/workflows/generateCheck.sh +++ b/.github/workflows/generateCheck.sh @@ -3,7 +3,6 @@ if [ -z "${files}" ]; then echo "All files are formatted correctly" >>$GITHUB_STEP_SUMMARY exit 0 else - files=$(echo "$files" | sed -e '1,4d') echo "## Formatting Check Failed 😅" >>$GITHUB_STEP_SUMMARY echo "Please run prettier using \`npx prettier . --write\` in order to format your code" >>$GITHUB_STEP_SUMMARY echo "### Files with bad formatting:" >>$GITHUB_STEP_SUMMARY diff --git a/.github/workflows/prettierCheck.yml b/.github/workflows/prettierCheck.yml index 8dbff40..6c19f56 100644 --- a/.github/workflows/prettierCheck.yml +++ b/.github/workflows/prettierCheck.yml @@ -16,7 +16,7 @@ jobs: id: prettier continue-on-error: true run: | - echo "files=howdy" >> "$GITHUB_ENV" + echo files=$(npx prettier . -l | sed -e '1,4d' ) >> "$GITHUB_ENV" - name: generate errors/summary run: .github/workflows/generateCheck.sh env: