GitHub repo views counter

maintain a historic count of GitHub repository views

maintain a daily count of repository views. The workflow uses the Map state to concurrently process an array of repository URLS.
Create a GitHub Personal Access Token and add include when propted by the template deployment process with `sam deploy -g`.
Add a comma seperated list of repositories to the initial 'get reps' state.
The workflow is triggered at 14:24 every day by a rule on Amazon EventBridge Scheduler.
Results are saved to a DynamoDB table

< Back to all workflows

GitHub icon View this workflow on GitHub


Clone repo

git clone https://github.com/aws-samples/step-functions-workflows-collection/tree/main/github-repo-views-counter/cd step-functions-workflows-collection/github-repo-views-counter

Deploy

sam deploy --guided


Testing

See the GitHub repo for detailed testing instructions.

Cleanup

1. Delete the stack: sam delete.

Additional resources

Created by:

Benjamin Smith

Benjamin Smith

Ben is a senior developer advocate for Serverless Applications at Amazon Web Services based in London, UK. Prior to joining AWS Ben worked in a number of different technical roles specializing in workflow Automation and web development.

Follow on LinkedIn