This repository automates the process of booking and checking in for a desk using GitHub Actions. It sets up two recurring actions:
- Create Booking: Runs daily at 12 AM to schedule a booking 7 days in advance. For example, on March 1st, it books for March 8th.
- Check-in: Runs daily at 9 AM to automatically check in for a valid booking.
These actions are configured to run every day except weekends. Please use responsibly and cancel bookings if they are not needed.
-
Fork this Repository
-
Configure Secrets
Navigate to your repository settings:
- Go to Settings > Secrets and Variables (Sidebar) > Actions > New Repository Secret
-
AUTOBOOKING_DESK_ID
: This is the desk ID used for booking. For example,3058825798
. -
AUTOBOOKING_SESSION_COOKIE
: This is your session cookie, which is necessary for making authenticated requests on your behalf.
You can obtain these secrets from the Matrix Booking website by following these steps:
- Go to the Matrix Booking website.
- Open Developer Tools (usually by pressing
F12
orCtrl+Shift+I
). - Navigate to the Network tab.
- Navigate to new booking page and click on your seat in the office seat map.
- Click on the relevant network request to view and extract the necessary details.
Note: The token typically expires in about 3 weeks, so update this secret regularly.
Once set up, the repository schedules 7 days ahead, so you must manually book seats for the next 7 days.
AUTOBOOKING_TELEGRAM_BOT_TOKEN
: Obtain this from the @botfather Telegram bot by creating a new bot using the/newbot
command.AUTOBOOKING_TELEGRAM_CHAT_ID
: Your Telegram user ID. You can retrieve this from any user info bot, such as @UserX_RoBot.
Important: After creating your bot, send it any message. This step is crucial to ensure that the bot is eligible to send you messages.
You can manually run the workflow at any time:
- Navigate to Create Booking / Check-in
- Click Run Workflow.
To disable any workflow:
- Navigate to Create Booking / Check-in
- Click the three dots on the right side of the page.
- Select Disable Workflow.
Note: The repository is configured for the India timezone. You may need to adjust the settings to match your local timezone.