-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Revert "Bypass Push Rules for GitHub Action"
- Loading branch information
1 parent
2fbee6a
commit bc3302b
Showing
1 changed file
with
1 addition
and
9 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,22 +2,14 @@ name: Format Docs and Code | |
on: [push, pull_request] | ||
|
||
jobs: | ||
format: | ||
prettier: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
with: | ||
# Make sure the actual branch is checked out when running on pull requests | ||
ref: ${{ github.head_ref }} | ||
ssh-key: ${{ secrets.ACTION_PUSH }} | ||
|
||
- name: Use lint-md to format Markdown | ||
# For issues of Chinese characters in prettier: | ||
# https://github.com/prettier/prettier/blob/e22a5516f5b2c44e6d68be4c0a7ba0b32c1b9f86/website/blog/2023-07-05-3.0.0.md?plain=1#L27 | ||
run: | | ||
npm install --save-dev --save-exact @lint-md/cli | ||
lint-md ./**/* --fix | ||
|
||
- name: Prettify code | ||
uses: creyD/[email protected] | ||
|