1
0
mirror of https://github.com/TeamNewPipe/NewPipe synced 2024-11-13 21:34:56 +00:00
NewPipe/.github/workflows/image-minimizer.yml

36 lines
740 B
YAML
Raw Normal View History

name: Image Minimizer
on:
issue_comment:
types: [created, edited]
issues:
types: [opened, edited]
2023-07-15 00:01:11 +00:00
pull_request:
types: [opened, edited]
permissions:
issues: write
pull-requests: write
jobs:
try-minimize:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 16
- name: Install probe-image-size
run: npm i probe-image-size@7.2.3 --ignore-scripts
- name: Minimize simple images
uses: actions/github-script@v7
timeout-minutes: 3
with:
script: |
const script = require('.github/workflows/image-minimizer.js');
await script({github, context});