View Code? Open in Web Editor
NEW
This project forked from comdotlinux/elements-slot-scheduled-reservation
License: MIT License
Shell 16.55%
JavaScript 83.45%
elements-slot-scheduled-reservation's Introduction
elements-slot-scheduled-reservation
Simple Script that reserves the elements gym reservation slot
- Clone this repo
- Create two repository secrets by going to Settings > Secrets and variables > Actions > Click on new Repository secret
- Or See https://docs.github.com/en/actions/security-guides/encrypted-secrets#creating-encrypted-secrets-for-a-repository
- Or For this repo the link is : https://github.com/comdotlinux/elements-slot-scheduled-reservation/settings/secrets/actions
- Create a secret named
ELEMENTS_EMAIL
with value as your email
- Create a secret named
ELEMENTS_PASSWORD
with value as your time slot reservation password
- Goto Actions > Reserve Slot > Artifacts > slot-reserved
- It should look something like this
- Download the file and unzip it, you should have a screenshot of your reservation
- You are Done!
- Above steps are only required once.
- There should now be a schedule that runs theis every Sunday, Tuesday and Friday at 12 PM.
- If You want to change the days you want to reserve, just edit the file .github > workflows > reserve-slot.yaml and find the text
cron
- Change the SUN,TUE,FRI to any week days or
*
for each day :)
- Commit the file and your schedule will run accordingly.
--
elements-slot-scheduled-reservation's People
Contributors