Skip to content
This repository has been archived by the owner on Sep 28, 2022. It is now read-only.

add prettier yml for workflow #5

Merged
merged 1 commit into from
May 16, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
28 changes: 28 additions & 0 deletions .github/workflow/prettier.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: dry run prettier

on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
workflow_dispatch:

jobs:
prettier:
runs-on: ubuntu-latest

steps:
- name: Checkout
uses: actions/checkout@v2
with:
fetch-depth: 0
ref: ${{ github.head_ref }}
# Make sure the value of GITHUB_TOKEN will not be persisted in repo's config
persist-credentials: false

- name: Prettify code
uses: creyD/prettier_action@v4.2
with:
prettier_options: --check **/*.{js,mjs}
dry: True
github_token: ${{ secrets.PERSONAL_GITHUB_TOKEN }}