-
-
Notifications
You must be signed in to change notification settings - Fork 42
36 lines (31 loc) · 932 Bytes
/
compress.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
name: compress-images
on:
schedule:
- cron: "0 0 * * 3"
workflow_dispatch:
jobs:
compress:
runs-on: ubuntu-latest
if: github.repository == 'doocs/qcloud-im-server-sdk-java'
steps:
- name: Checkout Branch
uses: actions/checkout@v4
- 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 "[email protected]"
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 }}