-
Notifications
You must be signed in to change notification settings - Fork 16
34 lines (34 loc) · 1.05 KB
/
actions.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
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