diff --git a/.github/workflows/generateCheck.sh b/.github/workflows/generateCheck.sh index 7de4bb5..a8f1a38 100755 --- a/.github/workflows/generateCheck.sh +++ b/.github/workflows/generateCheck.sh @@ -1,4 +1,4 @@ -if [ $files == '' ]; then +if [ -z "${files}" ]; then echo "## Formatting Check passed 🥳" >>$GITHUB_STEP_SUMMARY echo "All files are formatted correctly" >>$GITHUB_STEP_SUMMARY exit 0 diff --git a/.github/workflows/prettierCheck.yml b/.github/workflows/prettierCheck.yml index 2e6578f..348865a 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=$(npx prettier . -l | sed -e '1,4d' )" > $GITHUB_OUTPUTS + echo "files=$(npx prettier . -l | sed -e '1,4d' )" >> $GITHUB_OUTPUTS - name: generate errors/summary run: .github/workflows/generateCheck.sh env: