Check Bus Availability #197
This file contains hidden or 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: Check Bus Availability | |
| on: | |
| schedule: | |
| - cron: '1 0,6,12,18 * * *' # Runs at the beginning of every hour | |
| workflow_dispatch: | |
| jobs: | |
| run-script: | |
| runs-on: ubuntu-latest | |
| env: | |
| SENDER_PASSWORD: ${{ secrets.SENDER_PASSWORD }} | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v4 | |
| - name: Set up Python | |
| uses: actions/setup-python@v5 | |
| with: | |
| python-version: '3.x' | |
| - name: Install dependencies | |
| run: | | |
| pip install selenium webdriver-manager beautifulsoup4 | |
| - name: Run Python script | |
| run: python bus_checker.py |