Files
Excalidraw/excalidraw-libraries/.github/workflows/process-libraries.yml
T
Tomas Dvorak 338dbcc20e fix: convert cf-kv and excalidraw-libraries from submodules to regular files
- Remove stale cloudflare-worker submodule entry from .gitmodules
- Remove .git dirs from cf-kv and excalidraw-libraries so Git tracks them as regular files
- Fixes 'No url found for submodule path cf-kv' CI error
2026-04-27 09:37:49 +02:00

26 lines
779 B
YAML

name: Process libraries.json
on: pull_request
jobs:
item_names:
if: github.repository == 'excalidraw/excalidraw-libraries'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
token: ${{ secrets.EXCALIBOT_PAT_WORKFLOWS }}
ref: ${{ github.event.pull_request.head.ref }}
- name: regenrate-item-names
run: node scripts/gen-item-names.mjs
- name: Commit changes
run: |
FILE_CHANGED=$(git diff libraries.json)
if [ ! -z "${FILE_CHANGED}" ]; then
git config --global user.name 'Excalidraw Bot'
git config --global user.email 'bot@excalidraw.com'
git add .
git commit -am "regenerate itemNames"
git push
fi