mirror of
https://github.com/sudoxnym/brands.git
synced 2026-05-08 15:06:33 +00:00
29 lines
849 B
YAML
29 lines
849 B
YAML
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@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
|
|
- 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 }}
|