diff --git a/.github/workflows/booking.yml b/.github/workflows/booking.yml index 7765a70..131f8f9 100644 --- a/.github/workflows/booking.yml +++ b/.github/workflows/booking.yml @@ -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 diff --git a/add-to-cart.mjs b/add-to-cart.mjs index 81a2b8a..a588edc 100644 Binary files a/add-to-cart.mjs and b/add-to-cart.mjs differ diff --git a/book-missed-slots.mjs b/book-missed-slots.mjs new file mode 100644 index 0000000..648affb Binary files /dev/null and b/book-missed-slots.mjs differ diff --git a/check-for-changes.mjs b/check-for-changes.mjs index 58ffbba..072320f 100644 Binary files a/check-for-changes.mjs and b/check-for-changes.mjs differ diff --git a/helpers/bookSlot.mjs b/helpers/bookSlot.mjs index b690970..bec9a56 100644 Binary files a/helpers/bookSlot.mjs and b/helpers/bookSlot.mjs differ diff --git a/helpers/login.mjs b/helpers/login.mjs index 5056eaf..48cb702 100644 Binary files a/helpers/login.mjs and b/helpers/login.mjs differ diff --git a/helpers/setupUtility.mjs b/helpers/setupUtility.mjs new file mode 100644 index 0000000..57e3f14 Binary files /dev/null and b/helpers/setupUtility.mjs differ