colinparsonscom/Upload Status Badge
Create a status badge with the result of a command, and upload it to the specified gist id.
View on GitHubTrust Signals
- Scorecard Score
- not yet scored
- Maintenance Recency
- Stalelast commit May 8, 2023
- License
- MIT
Pinned Snippet
uses: colinparsonscom/upload-status-badge@a4f435143cc30b6e2fcd485326665fac90d98ae9 # v0.1.8tags can be moved; commit SHAs can't. why a SHA?
Inputs
| name | description | required | default |
|---|---|---|---|
| auth | A GitHub token with gist scope. | yes | — |
| gist-id | The ID of the gist to which to upload the status badge. | yes | — |
| badge-label | The label of the status badge. | yes | — |
| outcome | Either "success" or "failure", indicating what the status badge should display. | no | — |
| passing-results | A fraction, percentage, float, or mathematical expression indicating the number or proportion of passing results (ex: "4/7", "35%", "3.14", or "(2 ^ 4 - 6e-2)/(4 * 2 + 3.2%)"). | no | — |
| passing-results-thresholds | A strictly increasing list of at most 5 thresholds, separated by commas, and provided as fractions, percentages, floats, or mathematical expressions. At each of these, the badge will display a different color (ex: "0.2, 1/2, 70%" will display red for passing-results up to 0.2, orange for passing-results between 0.2 and 0.5, yellow for passing-results between 0.5 and 0.7, and brightgreen for passing-results above 0.7). If no list is provided, the default thresholds are 0.5 and 0.9 (that is, red for passing-results below 0.5, yellow for passing-results between 0.5 and 0.9, and brightgreen for passing-results above 0.9). | no | 0.5, 0.9 |
| custom-message | Display this custom message instead of success, failure, or number/proportion of passing results (ex: "generally doing OK"). | no | — |
| custom-color | Display this color with a custom message (ex: "a020f0" or "purple"). | no | — |
Outputs
no outputs