Skip to content

Commit

Permalink
Update image-minimizer.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
naveensingh authored Nov 17, 2024
1 parent 61f4e07 commit 7244ab1
Showing 1 changed file with 7 additions and 8 deletions.
15 changes: 7 additions & 8 deletions .github/workflows/image-minimizer.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,31 +5,30 @@ on:
types: [created, edited]
issues:
types: [opened, edited]
pull_request:
pull_request_target:
types: [opened, edited]

permissions:
issues: write
pull-requests: write

jobs:
try-minimize:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
token: ${{ secrets.FOSSIFYBOT_TOKEN }}

- uses: actions/setup-node@v3
- uses: actions/setup-node@v4
with:
node-version: 16

- name: Install probe-image-size
run: npm i [email protected] --ignore-scripts

- name: Minimize simple images
uses: actions/github-script@v6
uses: actions/github-script@v7
timeout-minutes: 3
with:
github-token: ${{ secrets.FOSSIFYBOT_TOKEN }}
script: |
const script = require('.github/workflows/image-minimizer.js');
await script({github, context});

0 comments on commit 7244ab1

Please sign in to comment.