Skip to content

Update SVG

Update SVG #169

Workflow file for this run

name: Update SVG
on:
schedule:
- cron: "0 5 * * TUE,WED,THU,FRI,SAT"
workflow_dispatch:
pull_request:
permissions:
contents: write
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
update-svg:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
submodules: true
- name: Setup Node
uses: actions/setup-node@v4
with:
node-version: 22
- name: Install
run: npm ci
- name: Setup GPG Key & Git config
if: github.event_name != 'pull_request'
run: |
gpg --batch --import <( echo "$GPG_SIGNING_KEY")
git config --global user.signingkey "$GPG_KEY_ID"
git config --global user.name "$GIT_NAME"
git config --global user.email "$GIT_EMAIL"
env:
GPG_SIGNING_KEY: ${{ secrets.GPG_SIGNING_KEY }}
GPG_KEY_ID: ${{ secrets.GPG_KEY_ID }}
GIT_NAME: ${{ secrets.GIT_NAME }}
GIT_EMAIL: ${{ secrets.GIT_EMAIL }}
- name: Update SVG
run: ./update.sh
env:
PULL_REQUEST: ${{ github.event_name == 'pull_request' }}