mirror of
https://github.com/Dvorinka/excalidraw-full.git
synced 2026-06-03 22:02:57 +00:00
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
This commit is contained in:
@@ -0,0 +1,25 @@
|
||||
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
|
||||
@@ -0,0 +1,17 @@
|
||||
name: Validate libraries.json
|
||||
|
||||
on: pull_request
|
||||
|
||||
jobs:
|
||||
validation:
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- name: Setup Node.js 14.x
|
||||
uses: actions/setup-node@v2
|
||||
with:
|
||||
node-version: 14.x
|
||||
- name: Validate libraries.json
|
||||
run: |
|
||||
yarn validate:libraries
|
||||
Reference in New Issue
Block a user