Skip to content

Commit

Permalink
chore: update compress workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
yanglbme committed Dec 13, 2021
1 parent 53840cc commit 4bfa22e
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 23 deletions.
17 changes: 0 additions & 17 deletions .github/workflows/branch-merge.yml

This file was deleted.

17 changes: 11 additions & 6 deletions .github/workflows/compress.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,18 +19,23 @@ 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 }}
githubToken: ${{ secrets.ACTION_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 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.GITHUB_TOKEN }}
github_token: ${{ secrets.ACTION_TOKEN }}

0 comments on commit 4bfa22e

Please sign in to comment.