mirror of
https://github.com/doocs/md.git
synced 2024-11-28 13:36:32 +08:00
chore: update workflows
This commit is contained in:
parent
47ebb4cc8c
commit
fdf504190f
7
.github/workflows/compress.yml
vendored
7
.github/workflows/compress.yml
vendored
@ -18,16 +18,19 @@ jobs:
|
||||
uses: actions/checkout@v2
|
||||
|
||||
- name: Compress Images
|
||||
uses: calibreapp/image-actions@master
|
||||
id: calibre
|
||||
uses: calibreapp/image-actions@main
|
||||
with:
|
||||
githubToken: ${{ secrets.GITHUB_TOKEN }}
|
||||
compressOnly: true
|
||||
|
||||
- name: Commit Files
|
||||
if: |
|
||||
steps.calibre.outputs.markdown != ''
|
||||
run: |
|
||||
git config --local user.email "action@github.com"
|
||||
git config --local user.name "GitHub Action"
|
||||
git commit -m "[Automated] Optimize images" -a
|
||||
git commit -m "chore: auto compress images" -a
|
||||
- name: Push Changes
|
||||
uses: ad-m/github-push-action@master
|
||||
with:
|
||||
|
4
.github/workflows/prettier.yml
vendored
4
.github/workflows/prettier.yml
vendored
@ -14,9 +14,7 @@ jobs:
|
||||
ref: ${{ github.head_ref }}
|
||||
|
||||
- name: Prettify code
|
||||
uses: creyD/prettier_action@v3.3
|
||||
uses: creyD/prettier_action@v4.0
|
||||
with:
|
||||
prettier_options: --write **/*.{html,js,md,vue,less,css}
|
||||
commit_message: "style: prettify code"
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
|
Loading…
Reference in New Issue
Block a user