Skip to content

Create cover-forgejo.svg #11

Create cover-forgejo.svg

Create cover-forgejo.svg #11

Workflow file for this run

name: Optimize SVGs
on:
push:
branches:
- main
schedule:
- cron: "0 0 * * 0"
jobs:
optimize:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Set up Node.js
uses: actions/setup-node@v3
with:
node-version: '18'
- name: Install dependencies
run: npm install
- name: Run SVG optimization script
run: node index.js
- name: Configure Git
run: |
git config --global user.name "zerops-gh"
git config --global user.email "[email protected]"
- name: Check for changes
id: git-status
run: |
git diff --exit-code || echo "Changes detected"
- name: Commit and push changes
if: steps.git-status.outputs.git-status == 'Changes detected'
run: |
git add .
git commit -m "Optimize SVG files"
git push
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
UV_THREADPOOL_SIZE: 64