A small Rust program that watches H-E-B's public job listings and emails you when a new opening appears at specific stores. GitHub Actions runs it every 2 hours. You only get an email when something new is posted, and each job is sent once.
The code is commented heavily to double as a Rust learning project.
- Fetch: pull every San Antonio-area posting from HEB's public API
(
heb.jibeapply.com/api/jobs). If any page fails after retries, or the API reports zero jobs, the run fails loudly instead of quietly sending nothing. Real runs also check the Gmail login and the secrets before fetching. - Match stores: keep jobs whose store label carries one of the configured
store numbers (
SA49-...,San Antonio 49 (...),SA049, ...). Postings with no store number at all can still match by street, for examplePotranco+211. Those are marked check location in the email. Store postings that cover several locations (HEB only names the primary store) are included when they list San Antonio, marked multi-store posting, check location. - Classify: management roles are dropped. Entry-level roles (curbie, bagger, checker, CSA, part-time, ...) go first. Everything else goes in "Other roles".
- Dedupe: skip anything already in
seen.json. - Email: send one HTML email (with a plain-text fallback) through Gmail.
Jobs are added to
seen.jsononly after the send succeeds. - Commit: the workflow commits
seen.jsonback to the repo whenever it changes. A weekly keep-alive bump stops GitHub from disabling the schedule on quiet repos.
| File | What it does |
|---|---|
src/main.rs |
CLI and the run flow |
src/api.rs |
API types, paging, retries, sanity checks |
src/matcher.rs |
Store matching and role classification |
src/state.rs |
seen.json load/save, dedupe, prune, keep-alive |
src/email.rs |
Email rendering and Gmail SMTP |
src/config.rs |
Typed loading of config.toml |
config.toml |
Stores, street pairs, keyword lists (no personal data) |
seen.json |
Jobs already emailed (HEB job ids and dates only) |
Install Rust (https://rustup.rs), then:
cargo test # unit tests
cargo test -- --ignored live_fetch # hits the real HEB API
cargo run -- --dry-run # fetch and match; prints, no email, no state changeFor a real local run, create .env and wrap values containing spaces in
double quotes:
[email protected]
EMAIL_PWORD="abcd efgh ijkl mnop"
[email protected],[email protected]EMAIL_PWORD is a Gmail app password
(https://myaccount.google.com/apppasswords; it needs 2-step verification
turned on), not your normal password.
.github/workflows/actions.yml runs every 2 hours (0 */2 * * *, UTC), and
can also be started by hand from the Actions tab.
Repository secrets (Settings > Secrets and variables > Actions):
| Secret | Value |
|---|---|
EMAIL_ID |
Gmail address that sends the alerts |
EMAIL_PWORD |
Its app password |
ALERT_TO |
Comma-separated recipient addresses |
A failed run (bad password, API down, missing secret) shows a red X, and GitHub emails the repo owner.
Edit config.toml. The repo is public, so keep email addresses in the
ALERT_TO secret, never in this file.