Moved to auto commit
This commit is contained in:
parent
92b2159f86
commit
b24a79124f
1 changed files with 10 additions and 4 deletions
14
.github/workflows/prettier.yml
vendored
14
.github/workflows/prettier.yml
vendored
|
@ -10,6 +10,8 @@ on:
|
||||||
jobs:
|
jobs:
|
||||||
prettier:
|
prettier:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
permissions:
|
||||||
|
contents: write
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
|
@ -19,8 +21,12 @@ jobs:
|
||||||
ref: ${{ github.head_ref }}
|
ref: ${{ github.head_ref }}
|
||||||
|
|
||||||
- name: Prettify code
|
- name: Prettify code
|
||||||
uses: creyD/prettier_action@v4.2
|
run: npm run prettier
|
||||||
|
|
||||||
|
- name: Commit Prettier Code
|
||||||
|
uses: stefanzweifel/git-auto-commit-action@v4.14.1
|
||||||
with:
|
with:
|
||||||
# This part is also where you can pass other options, for example:
|
|
||||||
prettier_options: --write **/*.{js,json,ts,css,less}
|
commit_message: "chore: Prettified Code\n ci skip"
|
||||||
github_token: ${{ secrets.RELEASE_TOKEN }}
|
commit_user_name: cider-chore[bot]
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue