renew #85
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: renew | |
on: | |
schedule: | |
- cron: '30 11 * * 1' | |
workflow_dispatch: | |
jobs: | |
renew: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Check out this repo | |
uses: actions/checkout@v3 | |
- name: Set up Python | |
uses: actions/setup-python@v4 | |
with: | |
python-version: '3.10' | |
- name: Remove Chrome | |
run: sudo apt purge --remove google-chrome-stable -y | |
- name: Remove old Chromium | |
run: sudo apt purge --remove chromium-browser -y | |
- name: Cleanup | |
run: sudo apt autoremove && sudo apt autoclean -y | |
- name: Delete Chromium | |
run: sudo rm -rf /usr/bin/chromium | |
- name: Install Chromium | |
run: sudo apt install chromium-browser -y | |
- name: Check Chromium Version | |
run: chromium-browser --product-version | |
- name: Install all necessary packages | |
run: pip install selenium webdriver-manager | |
- name: Run the scraping script | |
env: | |
USERNAME: ${{ secrets.USERNAME }} | |
PASSWORD: ${{ secrets.PASSWORD }} | |
run: python renew.py |