Automate Spond Login and Booking #25
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: '59 19 * * 0' # Runs at 19:59 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: Download and Run Chrome Installation Script | |
run: | | |
curl -sL https://raw.githubusercontent.com/actions/runner-images/main/images/ubuntu/scripts/build/install-google-chrome.sh | sudo bash | |
- name: Installed package list | |
run: apt list --installed | |
- name: Install all necessary packages | |
run: pip install -r requirements.txt | |
- name: Run script | |
env: | |
MY_EMAIL: ${{ secrets.MY_EMAIL }} | |
MY_PASSWORD: ${{ secrets.MY_PASSWORD }} | |
run: python main.py |