mirror of
https://github.com/creyD/crush_action.git
synced 2026-04-12 19:50:29 +02:00
Added OptiPNG Lossless compression
This commit is contained in:
@@ -1,4 +1,4 @@
|
|||||||
FROM node:lts-alpine3.9
|
FROM node:lts-alpine3.9
|
||||||
RUN apk update && apk upgrade && apk add --no-cache bash git openssh
|
RUN apk update && apk upgrade && apk add --no-cache bash git openssh optipng
|
||||||
COPY entrypoint.sh /entrypoint.sh
|
COPY entrypoint.sh /entrypoint.sh
|
||||||
ENTRYPOINT ["/entrypoint.sh"]
|
ENTRYPOINT ["/entrypoint.sh"]
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
name: Prettier Action
|
name: Crush Action
|
||||||
description: Automatically runs prettier on all your changes.
|
description: Losslessly reduces file size for PNGs
|
||||||
|
|
||||||
author: Conrad Großer <grosserconrad@gmail.com>
|
author: Conrad Großer <grosserconrad@gmail.com>
|
||||||
|
|
||||||
@@ -7,7 +7,7 @@ inputs:
|
|||||||
commit_message:
|
commit_message:
|
||||||
description: Commit message
|
description: Commit message
|
||||||
required: false
|
required: false
|
||||||
default: 'Prettified Code!'
|
default: 'Optimised your images!'
|
||||||
commit_options:
|
commit_options:
|
||||||
description: Commit options
|
description: Commit options
|
||||||
required: false
|
required: false
|
||||||
|
|||||||
@@ -36,7 +36,7 @@ _git_push() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
# PROGRAM
|
# PROGRAM
|
||||||
# TODO: Add actual commands for compressing
|
find -type f -name "*.png" -exec optipng -nc -nb -o7 {} \;
|
||||||
|
|
||||||
# To keep runtime good, just continue if something was changed
|
# To keep runtime good, just continue if something was changed
|
||||||
if _git_changed;
|
if _git_changed;
|
||||||
|
|||||||
Reference in New Issue
Block a user