-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
adds action to convert images in PRs
- Loading branch information
Showing
1 changed file
with
44 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
name: Convert Images | ||
|
||
on: | ||
pull_request: | ||
types: [opened, synchronize] | ||
push: | ||
branches: | ||
- '*' | ||
|
||
permissions: | ||
actions: read | ||
checks: read | ||
contents: read | ||
deployments: none | ||
issues: read | ||
packages: none | ||
pull-requests: read | ||
repository-projects: none | ||
security-events: none | ||
statuses: none | ||
|
||
jobs: | ||
build: | ||
runs-on: 'ubuntu-latest' | ||
name: Convert Images | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: Install Dependencies | ||
run: | | ||
git clone --recursive https://github.com/kornelski/pngquant.git | ||
cd pngquant | ||
cargo build --release | ||
cd .. | ||
sudo add-apt-repository universe | ||
sudo add-apt-repository ppa:inkscape.dev/stable | ||
sudo apt-get update | ||
sudo apt install inkscape | ||
sudo apt install imagemagick | ||
shell: bash | ||
- name: Run convert images | ||
run: ./convert.sh | ||
shell: bash |