Automate Spond Login and Booking #31
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: Automate Spond Login and Booking | |
on: | |
schedule: | |
- cron: '58 19 * * 0' # Runs at 19:58 every Sunday | |
workflow_dispatch: | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Check out this repo | |
uses: actions/checkout@v4 | |
- name: Set up Python | |
uses: actions/setup-python@v5 | |
with: | |
python-version: '3.10' | |
- name: Installing package list | |
run: apt list --installed | |
- name: Removing previous chrome instances on runner | |
run: sudo apt purge google-chrome-stable | |
- name: Install xvfb | |
run: sudo apt-get install xvfb | |
- name: Install all necessary packages | |
run: | | |
pip install -r requirements.txt | |
pip install chromedriver-autoinstaller | |
- name: Run script | |
env: | |
MY_EMAIL: ${{ secrets.MY_EMAIL }} | |
MY_PASSWORD: ${{ secrets.MY_PASSWORD }} | |
run: python main.py |