We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
- name: Run ESLint uses: reviewdog/action-eslint@v1 - name: Run Prettier id: prettier_run run: | echo "::set-output name=prettier_output::$(npx prettier --list-different .)" echo "$(npx prettier --list-different . > prettier.txt)" - name: Comment on PR if: contains(${{ steps.prettier_run.outputs.prettier_output }}, '.'); uses: actions/github-script@v3 with: github-token: ${{secrets.GITHUB_TOKEN}} script: | const fs = require('fs') const cmdoutput = fs.readFileSync(`${process.env.GITHUB_WORKSPACE}/prettier.txt`) console.log(cmdoutput) github.issues.createComment({ issue_number: context.issue.number, owner: context.repo.owner, repo: context.repo.repo, body: `Prettier Response:\n ${cmdoutput}` })
The text was updated successfully, but these errors were encountered:
No branches or pull requests
The text was updated successfully, but these errors were encountered: