This repository serves as a template for creating your own GitHub repositories. It includes a scheduled GitHub Action that generates GitHub stats on a daily basis.
To use this template, follow these steps:
- Click on the "Use this template" button to create a new repository based on this template.
- Clone the newly created repository to your local machine.
To enable the scheduled GitHub Action, you need to create a GitHub Personal Access Token (PAT). This token should be a classic token, set to never expire, with scopes for read-only repository and profile access. Here's how:
- Go to GitHub settings.
- Navigate to "Developer settings" > "Personal access tokens".
- Click on "Generate new token".
- Give your token a descriptive name.
- Set the expiration to "No expiration" or whatever your preference is.
- For the scopes, select "repo" (for read-only repository access) and "user:email" (for read-only profile access).
- Click on "Generate token".
- Copy the generated token. Be sure to save it somewhere safe, as you won't be able to see it again.
After generating your PAT, you need to add it to the repository secrets. Here's how:
- Go to your repository settings.
- Navigate to "Secrets".
- Click on "New repository secret".
- Name the secret "ACCESS_TOKEN" and paste your PAT in the value field.
- Click on "Add secret".
With the PAT added to the repository secrets, the scheduled GitHub Action can now run. This action generates GitHub stats daily.
To view the stats, navigate to the "Actions" tab in your repository. Here, you can see the results of each run of the action.
Remember to always keep your PAT safe and never share it with anyone. It's like a password, but for your GitHub account.
Happy coding!