Save to Archive2 #951
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: Save to Archive2 | |
on: | |
schedule: | |
- cron: '0 11 * * *' # Once per day at midnight | |
jobs: | |
build: | |
runs-on: ubuntu-20.04 | |
strategy: | |
# You can use PyPy versions in python-version. For example, pypy2 and pypy3 | |
matrix: | |
python-version: [3.9] | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Set up Python ${{ matrix.python-version }} | |
uses: actions/setup-python@v1 | |
with: | |
python-version: ${{ matrix.python-version }} | |
# You can test your matrix by printing the current Python version | |
- name: Install | |
run: | | |
pip install -r requirements.txt | |
- name: Install software | |
run: sudo apt-get install -y chromium-browser | |
- name: Install the necessary packages | |
run: pip install requests webdriver-manager selenium pytest | |
- name: Save archive | |
run: python run.py | |
- uses: stefanzweifel/git-auto-commit-action@v4.1.2 | |
with: | |
commit_message: Apply news | |
branch: ${{ github.head_ref }} |