Skip to content

πŸ“¦ v1.3 β€” GitHub Actions Integration & Smart Logging

Choose a tag to compare

@djprotejee djprotejee released this 25 Apr 19:35
· 6 commits to main since this release
c3beebb

πŸš€ What's new in v1.3

βœ… GitHub Actions support for scheduled scraping and Google Sheets logging
βœ… Cloud-friendly improvements and smarter scheduling
βœ… All logs now available as downloadable artifacts after each run


πŸ›  Improvements:

  • Refactored is_gym_open() to allow Β±5 min tolerance (e.g. at 22:03 still allowed)
  • Better headless Chrome config for cloud environments
  • Screenshot saved as debug.png if scraping fails (uploaded to Actions)
  • Workflow now respects weekday (07:00–22:05) and weekend (09:00–18:05) rules

πŸ” Secrets Handling:

  • Google credentials now securely restored from base64-encoded secret (GOOGLE_CREDS_BASE64)

πŸ“ Artifacts Uploaded After Each Run:

  • debug.png β€” screenshot of the scraping UI (on failure)
  • data/gym_data.csv β€” scraped gym activity data
  • data/failures.log β€” write or network errors
  • data/unknown_gyms.log β€” unmatched clubs

πŸ•’ How it works:
This GitHub Actions workflow triggers every 15 minutes, but the scraper only runs during gym open hours.


Full Changelog: v1.2...v1.3