This page displays GitHub user stats such as followers count, stars count, stars last 14 days count, repositories count, unique viewers count, and allows sorting by these stats.
github-stats-page/index.html file in your web browser.The github-stats-page/index.html file is now static and no longer fetches data dynamically. Instead, the stats are updated once a day using a GitHub Action workflow.
The GitHub Action workflow fetches data from the GitHub API and updates a JSON file github-stats-page/stats.json with the latest stats. The github-stats-page/script.js file is modified to fetch data from the local stats.json file instead of the GitHub API.
To give push access to the acacia-forex repository, you need to create a personal access token with the required permissions:
repo scope to allow pushing to the acacia-forex repository.To use the personal access token in the workflow, you need to add it as a secret in the repository:
GITHUB_TOKEN and paste the personal access token you generated earlier.The script .github/scripts/fetch-stats.js uses the GITHUB_TOKEN environment variable for authentication when making requests to the GitHub API. Make sure to set the GITHUB_TOKEN environment variable in your GitHub Action workflows to avoid rate limiting issues.
To run the workflow on demand, you can use the workflow_dispatch event trigger. This allows you to manually trigger the workflow from the GitHub Actions tab in your repository.