Adapt DISCORD_WEBHOOK_
env vars
#1027
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Prettier Format Check | |
on: [push, pull_request] | |
jobs: | |
prettier: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Set up Node.js | |
uses: actions/setup-node@v3 | |
with: | |
node-version: '14' | |
- name: Install dependencies | |
run: npm install | |
- name: Run Prettier | |
id: prettier | |
run: npx prettier --config .prettierrc --check "**/*.{js,jsx,ts,tsx,html,css,scss}" | |
- name: Display Prettier Output | |
if: failure() | |
run: cat $GITHUB_WORKSPACE/.github/workflows/prettier.log | |
continue-on-error: true |