ci: Use lxml from apt #1979
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: generate_databases | |
on: | |
schedule: | |
- cron: '0 0 * * *' | |
push: | |
workflow_dispatch: | |
jobs: | |
generate_databases: | |
if: github.ref == 'refs/heads/master' | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Install dependencies | |
run: apt update && apt -y install python3-lxml | |
- name: Generate databases | |
run: ./scripts/generate_databases.py | |
- name: Commit changes | |
id: commit | |
run: | | |
git config --local user.email "41898282+github-actions[bot]@users.noreply.github.com" | |
git config --local user.name "github-actions[bot]" | |
git add app/src/main/res/values/arrays.xml | |
if git commit -m "Regenerate databases list"; then | |
echo "push=true" >> "$GITHUB_OUTPUT" | |
fi | |
- name: Push changes to repo | |
uses: ad-m/github-push-action@master | |
if: ${{ needs.commit.outputs.push == 'true' }} | |
with: | |
github_token: ${{ secrets.GITHUB_TOKEN }} | |
branch: ${{ github.ref }} |