sqlite3 #299
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: 'sqlite3' | |
on: | |
workflow_dispatch: | |
push: | |
branches: | |
- 'main' | |
paths: | |
- 'latest.xml' | |
schedule: | |
- cron: '6 5 * * *' | |
jobs: | |
update-sqlite3-database: | |
runs-on: 'ubuntu-latest' | |
steps: | |
- name: 'Checkout' | |
uses: 'actions/checkout@v3' | |
with: | |
ref: 'sqlite3' | |
- name: 'Get `latest.xml` from `main`' | |
run: | | |
git fetch --depth 1 origin main | |
git checkout origin/main -- 'latest.xml' | |
- name: 'Create `latest.db`' | |
run: | | |
rm 'latest.db' | |
python3 'scripts/create-sqlite3.py' | |
- name: 'Remove `latest.xml`' | |
run: | | |
rm 'latest.xml' | |
- name: '`git config`' | |
run: | | |
git config user.name "GitHub Actions" | |
git config user.email "<>" | |
- name: 'Commit and push' | |
run: | | |
git add --all -v | |
git commit -m 'Update' | |
git push origin sqlite3 |