Generation of the User-Agents file #1181
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: Generation of the User-Agents file | |
on: | |
push: | |
branches: | |
- "master" | |
pull_request: | |
branches: | |
- "master" | |
schedule: | |
- cron: "0 0 * * *" | |
workflow_dispatch: | |
env: | |
PYFUNCEBLE_AUTO_CONFIGURATION: "YES" | |
PYFUNCEBLE_CONFIG_DIR: "/tmp/.pyfunceble" | |
GIT_NAME: "${{ secrets.GIT_BOT_NAME }}" | |
GIT_EMAIL: "${{ secrets.GIT_BOT_EMAIL }}" | |
jobs: | |
generate: | |
name: Run the generator and push changes. | |
runs-on: "${{ matrix.os }}" | |
strategy: | |
fail-fast: false | |
matrix: | |
python_version: | |
- "3.11" | |
os: | |
- ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
name: Clone repository | |
- name: Set up Python ${{ matrix.python_version }} | |
uses: actions/setup-python@v4 | |
with: | |
python-version: ${{ matrix.python_version }} | |
- name: Install dependencies | |
run: | | |
pip install PyFunceble-dev requests-cache bs4 | |
- name: Get PyFunceble version | |
run: | | |
PyFunceble --version | |
- name: Run User-Agents Generator | |
run: | | |
./update.py |