Skip to content

Commit 2a3f584

Browse files
authored
Create workflow to copy SQLite3 files
1 parent c3572af commit 2a3f584

1 file changed

Lines changed: 29 additions & 0 deletions

File tree

.github/workflows/copy-sqlite3.yml

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
name: Copy SQLite3 Files
2+
3+
on:
4+
workflow_dispatch:
5+
6+
jobs:
7+
copy-files:
8+
runs-on: ubuntu-latest
9+
10+
steps:
11+
- name: Checkout current repository
12+
uses: actions/checkout@v4
13+
with:
14+
fetch-depth: 0
15+
16+
- name: Copy Files from sqlite/sqlite-wasm
17+
run: |
18+
mkdir -p dependencies/sqlite3
19+
curl -L -o dependencies/sqlite3/sqlite3-opfs-async-proxy.js https://raw.githubusercontent.com/sqlite/sqlite-wasm/main/src/bin/sqlite3-opfs-async-proxy.js
20+
curl -L -o dependencies/sqlite3/sqlite3.mjs https://raw.githubusercontent.com/sqlite/sqlite-wasm/main/src/bin/sqlite3.mjs
21+
curl -L -o dependencies/sqlite3/sqlite3.wasm https://raw.githubusercontent.com/sqlite/sqlite-wasm/main/src/bin/sqlite3.wasm
22+
23+
- name: Commit changes
24+
run: |
25+
git config --global user.email "action@github.com"
26+
git config --global user.name "GitHub Action"
27+
git add dependencies/sqlite3/*
28+
git commit -m "Copy sqlite3 files" || echo "No changes to commit"
29+
git push

0 commit comments

Comments
 (0)