Update image-minimizer.yml
This commit is contained in:
parent
55973d87c0
commit
3595ba1ebe
1 changed files with 4 additions and 7 deletions
11
.github/workflows/image-minimizer.yml
vendored
11
.github/workflows/image-minimizer.yml
vendored
|
|
@ -1,6 +1,3 @@
|
||||||
# This workflow has write permissions on the repo
|
|
||||||
# It MUST NOT check out a PR and run untrusted code
|
|
||||||
|
|
||||||
name: Image Minimizer
|
name: Image Minimizer
|
||||||
|
|
||||||
on:
|
on:
|
||||||
|
|
@ -8,7 +5,7 @@ on:
|
||||||
types: [created, edited]
|
types: [created, edited]
|
||||||
issues:
|
issues:
|
||||||
types: [opened, edited]
|
types: [opened, edited]
|
||||||
pull_request_target:
|
pull_request:
|
||||||
types: [opened, edited]
|
types: [opened, edited]
|
||||||
|
|
||||||
permissions:
|
permissions:
|
||||||
|
|
@ -22,9 +19,9 @@ jobs:
|
||||||
pull-requests: write
|
pull-requests: write
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v4
|
||||||
|
|
||||||
- uses: actions/setup-node@v3
|
- uses: actions/setup-node@v4
|
||||||
with:
|
with:
|
||||||
node-version: 16
|
node-version: 16
|
||||||
|
|
||||||
|
|
@ -32,7 +29,7 @@ jobs:
|
||||||
run: npm i probe-image-size@7.2.3 --ignore-scripts
|
run: npm i probe-image-size@7.2.3 --ignore-scripts
|
||||||
|
|
||||||
- name: Minimize simple images
|
- name: Minimize simple images
|
||||||
uses: actions/github-script@v6
|
uses: actions/github-script@v7
|
||||||
timeout-minutes: 3
|
timeout-minutes: 3
|
||||||
with:
|
with:
|
||||||
script: |
|
script: |
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue