How r4jrandy/job-automation works
This repository packages an n8n portal-alert workflow and supports running it through n8n or GitHub Actions. The documented workflow is imported from the workflows directory at startup; for Actions execution, the workflow JSON should include an Execute Workflow Trigger connected to its first processing node. The Actions token helper exchanges Google refresh tokens and writes short-lived access tokens to .env. The workflow JSON and Actions configuration were not sampled, so their internal wiring is not shown.
Main entry points: refresh-google-tokens.js Token refresh · run-portal-alerts.yml GitHub Actions · portal-alerts.json Portal alerts · credentials.template.json Credential template
Components 7
Workflow automation
- n8n runtime
- Portal alerts
workflows/portal-alerts.json
Actions execution
- GitHub Actions
.github/workflows/run-portal-alerts.yml
Google credentials
- Token refresh
scripts/refresh-google-tokens.js - Google OAuth
- Access tokens
- Credential template
credentials/credentials.template.json
Connections 4
- n8n runtime → Portal alerts: imports at startup
README.md - Token refresh → Google OAuth: exchanges refresh tokens
scripts/refresh-google-tokens.js - Token refresh → Access tokens: writes to .env
scripts/refresh-google-tokens.js - GitHub Actions → Credential template: imports Google credentials
README.md