Skip to content

Commit

Permalink
adds action to convert images in PRs
Browse files Browse the repository at this point in the history
  • Loading branch information
sgiehl committed Dec 9, 2024
1 parent 5008974 commit d939296
Showing 1 changed file with 44 additions and 0 deletions.
44 changes: 44 additions & 0 deletions .github/workflows/convertimages.yml
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

0 comments on commit d939296

Please sign in to comment.