mirror of
https://github.com/creyD/crush_action.git
synced 2026-04-12 11:40:30 +02:00
Finishing Touches for 1.0
This commit is contained in:
10
README.md
10
README.md
@@ -1,6 +1,6 @@
|
||||
# GitHub Crush Action
|
||||
|
||||
GitHub action for automatic lossless image compression using OptiPNG for PNG compression and jpegoptim for JPG compression.
|
||||
GitHub action for automatic lossless image compression using [OptiPNG](http://optipng.sourceforge.net/) for PNG compression and [jpegoptim](https://www.kokkonen.net/tjko/projects.html) for JPG compression.
|
||||
|
||||
## Usage
|
||||
|
||||
@@ -8,11 +8,11 @@ GitHub action for automatic lossless image compression using OptiPNG for PNG com
|
||||
|
||||
| Parameter | Required | Default | Description |
|
||||
| - | :-: | :-: | - |
|
||||
| folder | :x: | . | Custom search folder, if you don't want to search the whole repository. |
|
||||
| commit_options | :x: | - | Custom git commit options |
|
||||
| commit_message | :x: | Prettified Code! | Custom git commit message |
|
||||
| commit_message | :x: | Optimised your images! | Custom git commit message |
|
||||
| file_pattern | :x: | * | Custom git add file pattern |
|
||||
| branch | :white_check_mark: | - | There are two types of action triggers in GitHub: on pull request and on push. The branch needs to be defined for both, but in case of the pull request trigger it should have `${{ github.head_ref }}` and on push it should have the branch the trigger is designed for. |
|
||||
| folder | :x: | . | Custom search folder, if you don't want to search the whole repository. |
|
||||
|
||||
### Example Config
|
||||
|
||||
@@ -34,7 +34,7 @@ jobs:
|
||||
uses: actions/checkout@v1
|
||||
with:
|
||||
fetch-depth: 1
|
||||
- name: Prettify the JS Code
|
||||
- name: Crush Images!
|
||||
uses: creyD/crush_action@v1.0
|
||||
with:
|
||||
branch: ${{ github.head_ref }}
|
||||
@@ -60,7 +60,7 @@ jobs:
|
||||
uses: actions/checkout@v1
|
||||
with:
|
||||
fetch-depth: 1
|
||||
- name: Prettify the JS Code
|
||||
- name: Crush Images!
|
||||
uses: creyD/crush_action@v1.0
|
||||
with:
|
||||
branch: master
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
name: Crush Action
|
||||
description: Losslessly reduces file size for PNGs
|
||||
description: Losslessly reduces file size for PNG and JPG
|
||||
|
||||
author: Conrad Großer <grosserconrad@gmail.com>
|
||||
|
||||
@@ -28,5 +28,5 @@ runs:
|
||||
image: 'Dockerfile'
|
||||
|
||||
branding:
|
||||
icon: 'award'
|
||||
icon: 'aperture'
|
||||
color: 'green'
|
||||
|
||||
Reference in New Issue
Block a user