actions-marketplace-validations/Traffic to Badge
Use repository traffic data to generate badges that include views and clones.
View on GitHubTrust Signals
- Scorecard Score
- not yet scored
- Maintenance Recency
- Stalelast commit Jun 9, 2023
- License
- MIT
- Runtime
- Deprecated runtime
Pinned Snippet
uses: actions-marketplace-validations/yi-xu-0100_traffic-to-badge@30b72a5c14228f077c629658eb56a78f3c71fd3c # no releases — HEAD as of 2026-07-10tags can be moved; commit SHAs can't. why a SHA?
Inputs
| name | description | required | default |
|---|---|---|---|
| my_token | Set up a personal access token to obtain the secret repository traffic data. | yes | — |
| static_list | Set up a list of repositories to get. Only when github.repository with setting into first item, it can be correct to be current repository name. | no | ${{ github.repository }} |
| traffic_branch | If empty traffic data will be backed up to the branch named traffic. | no | traffic |
| views_color | Set a hex or named color value for the views badge background. | no | brightgreen |
| clones_color | Set a hex or named color value for the clones badge background. | no | brightgreen |
| views_week_color | Set a hex or named color value for the views per week badge background. | no | brightgreen |
| clones_week_color | Set a hex or named color value for the clones per week badge background. | no | brightgreen |
| total_views_color | Set a hex or named color value for the total views badge background. | no | brightgreen |
| total_clones_color | Set a hex or named color value for the total clones badge background. | no | brightgreen |
| total_views_week_color | Set a hex or named color value for the total views per week badge background. | no | brightgreen |
| total_clones_week_color | Set a hex or named color value for the total clones per week badge background. | no | brightgreen |
| logo | Insert a named logo or simple-icon to the left of the label. | no | github |
| year | Set a year number for license year beginning. If empty, it will no beginning year. | no | — |
Outputs
| name | description |
|---|---|
| traffic_branch | Origin traffic data branch name |
| traffic_path | Path to generate traffic data |