mirror of
https://github.com/doocs/md.git
synced 2024-11-24 19:10:34 +08:00
chore: remove compress workflow
This commit is contained in:
parent
b41f131f3a
commit
7488048052
35
.github/workflows/compress.yml
vendored
35
.github/workflows/compress.yml
vendored
@ -1,35 +0,0 @@
|
|||||||
name: Compress images
|
|
||||||
|
|
||||||
on:
|
|
||||||
schedule:
|
|
||||||
- cron: "0 0 * * 3"
|
|
||||||
workflow_dispatch:
|
|
||||||
|
|
||||||
jobs:
|
|
||||||
compress:
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
if: github.repository == 'doocs/md'
|
|
||||||
steps:
|
|
||||||
- name: Checkout Branch
|
|
||||||
uses: actions/checkout@v2
|
|
||||||
|
|
||||||
- name: Compress Images
|
|
||||||
id: calibre
|
|
||||||
uses: calibreapp/image-actions@main
|
|
||||||
with:
|
|
||||||
githubToken: ${{ secrets.ACTION_TOKEN }}
|
|
||||||
compressOnly: true
|
|
||||||
|
|
||||||
- name: Commit Files
|
|
||||||
if: |
|
|
||||||
steps.calibre.outputs.markdown != ''
|
|
||||||
run: |
|
|
||||||
git config --local user.email "szuyanglb@outlook.com"
|
|
||||||
git config --local user.name "yanglbme"
|
|
||||||
git commit -m "chore: auto compress images" -a
|
|
||||||
- name: Push Changes
|
|
||||||
if: |
|
|
||||||
steps.calibre.outputs.markdown != ''
|
|
||||||
uses: ad-m/github-push-action@master
|
|
||||||
with:
|
|
||||||
github_token: ${{ secrets.ACTION_TOKEN }}
|
|
Loading…
Reference in New Issue
Block a user