Skip to content

Artbreeder

Artbreeder #623

Workflow file for this run

name: Artbreeder
on:
schedule:
- cron: '0 7 * * *'
jobs:
Collect:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up Python
uses: actions/setup-python@v1
with:
python-version: '3.10'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
python -m pip install selenium atomicwrites
- name: Prepare Selenium
uses: nanasess/setup-chromedriver@master
- name: Start XVFB
run: |
google-chrome --version
export DISPLAY=:99
chromedriver --url-base=/wd/hub &
sudo Xvfb -ac :99 -screen 0 1280x1024x24 > /dev/null 2>&1 &
- name: Collect urls
env:
DISPLAY: :99
run: |
python scrape.py
- name: Push portraits
run: |
git config --global user.name 'Plotlyst Automation'
git config --global user.email 'automation@plotlyst.com'
git add .
git commit -m "Update portraits"
git push