Prerequisites
- A GitHub repository
- Augment API credentials
Steps
1. Create the workflow file
Create.github/workflows/augment-index.yml in your repository:
2. Set up GitHub repository secrets
Go to your repository Settings → Secrets and variables → Actions and add:
How to get your credentials:
AUGMENT_SESSION_AUTH.
3. Commit and push
4. Verify it’s working
Go to your repository’s Actions tab. You should see the “Index Repository” workflow running. Once complete, you can search your index:Done!
Your repository will now automatically re-index on every push to the main branch. The workflow uses GitHub Actions cache to store index state for efficient incremental updates.Also Works With
How It Works
The workflow:- Triggers on every push to your main branch
- Restores the previous index state from GitHub Actions cache
- Indexes the repository using the GitHub API (no checkout needed for indexing)
- Caches the new index state for the next run
Advanced: Using S3 Storage
For production use or team sharing, you can store indexes in S3 instead of GitHub cache:- Edit
.github/workflows/augment-index.yml - Add S3 configuration to the command:
- Add AWS credentials to repository secrets