Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
小 白蛋
Clutch
Commits
919bbc36
Unverified
Commit
919bbc36
authored
4 years ago
by
Derek
Committed by
GitHub
4 years ago
Browse files
Options
Download
Email Patches
Plain Diff
ci: automatically compress all images on PRs (#914)
parent
d01d2ab1
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
.github/workflows/images.yml
+21
-0
.github/workflows/images.yml
with
21 additions
and
0 deletions
+21
-0
.github/workflows/images.yml
0 → 100644
+
21
-
0
View file @
919bbc36
name
:
Compress Images
on
:
pull_request
:
paths
:
-
'
**.jpg'
-
'
**.jpeg'
-
'
**.png'
-
'
**.webp'
jobs
:
build
:
# Only run on Pull Requests within the same repository, and not from forks.
if
:
github.event.pull_request.head.repo.full_name == github.repository
name
:
calibreapp/image-actions
runs-on
:
ubuntu-latest
steps
:
-
name
:
Checkout Repo
uses
:
actions/checkout@v2
-
name
:
Compress Images
uses
:
calibreapp/image-actions@main
with
:
githubToken
:
${{ secrets.GITHUB_TOKEN }}
\ No newline at end of file
This diff is collapsed.
Click to expand it.
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment