Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Support for Missed Appointment Booking #170

Open
wants to merge 3 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
33 changes: 33 additions & 0 deletions .github/workflows/booking.yml
Original file line number Diff line number Diff line change
Expand Up @@ -89,3 +89,36 @@ jobs:
with:
name: debug-logs-${{ matrix.person }}
path: debug-logs-${{ matrix.person }}.tar.gz.gpg
book-missed-slots:
if: always()
needs: add-persons
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v4

- name: Setup project
uses: ./.github/actions/setup-project
with:
DECRYPTION_SECRET: ${{ secrets.DECRYPTION_SECRET }}

- name: Setup FFmpeg
uses: FedericoCarboni/setup-ffmpeg@v2

- name: Run Puppeteer
run: node book-missed-slots.mjs

- name: Archive Debug Logs
if: always()
continue-on-error: true
run: tar -czvf "debug-logs-book-missed-slots.tar.gz" "screenshot-book-missed-slots.png" "screenshot-final-book-missed-slots.png" "recording-book-missed-slots.webm"

- name: Encrypt Debug Logs
if: always()
run: gpg --batch -c --passphrase ${{ secrets.ARTIFACT_ENCRYPTION_PASS }} "debug-logs-book-missed-slots.tar.gz"

- name: Upload Screenshots
uses: actions/upload-artifact@v4
if: always()
with:
name: debug-logs-book-missed-slots
path: debug-logs-book-missed-slots.tar.gz.gpg
Binary file modified add-to-cart.mjs
Binary file not shown.
Binary file added book-missed-slots.mjs
Binary file not shown.
Binary file modified check-for-changes.mjs
Binary file not shown.
Binary file modified helpers/bookSlot.mjs
Binary file not shown.
Binary file modified helpers/login.mjs
Binary file not shown.
Binary file added helpers/randMouse.js
Binary file not shown.
Binary file added helpers/setupUtility.mjs
Binary file not shown.