Update dataset #147
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: Update dataset | |
on: | |
schedule: | |
# Update Thu 04:15 (CST) per week | |
- cron: '15 20 * * 3' | |
workflow_dispatch: {} | |
jobs: | |
update_dataset: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Install dependencies | |
run: | | |
sudo apt install -y lua5.4 | |
sudo npm install -g pnpm | |
pnpm install esbuild-register | |
- name: Build & Validate | |
run: | | |
bash scripts/buildAndValidate.sh | |
node scripts/updateVendorStrings.mjs | |
- name: Commit files | |
continue-on-error: true | |
run: | | |
git config --local user.email "[email protected]" | |
git config --local user.name "GitHub Actions" | |
git add data/ locales/ | |
git commit -m "feat: update dataset" | |
git pull --rebase | |
- name: Push changes | |
uses: ad-m/github-push-action@master | |
with: | |
branch: master | |
github_token: ${{ secrets.GITHUB_TOKEN }} |