forked from home-assistant/brands
-
Notifications
You must be signed in to change notification settings - Fork 0
29 lines (27 loc) · 849 Bytes
/
compress.yml
File metadata and controls
29 lines (27 loc) · 849 Bytes
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
name: Compress
# on:
# pull_request:
# paths:
# - "src/**.png"
on:
push:
branches-ignore:
- "**"
jobs:
compress:
name: Images
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
- name: Find symlinked paths to ignore
id: find
run: >-
echo "::set-output name=ignore::$(find -L src -xtype l -type d | sed -e 's#$#/**#' | head -c -1 | tr '\n' ',')"
- name: Check ignored paths
run: echo ${{ steps.find.outputs.ignore }} | tr ',' '\n'
- name: Compress Images
uses: calibreapp/image-actions@f32575787d333b0579f0b7d506ff03be63a669d1 # 1.4.1
with:
ignorePaths: ${{ steps.find.outputs.ignore }}
githubToken: ${{ secrets.GITHUB_TOKEN }}