This action creates a badge and upload it to a AWS S3 bucket.
Create a workflow .yml
file in your repositories .github/workflows
directory. An example workflow is available below. For more
information, reference the GitHub Help Documentation for
Creating a workflow file.
Badge parameters:
label
- the text in the badge on the left (required).text
- the text in the badge on the right (required).color
- the color behind the text. Acoverage
color value will set this color based on thetext
value, being 100 green and 0 red.label-color
- the color behind the label.format
- the format of the output file (svg
orjson
).template
- the template used to create the badge.
AWS parameters:
aws-access-key-id
- Amazon Access Key Id.aws-secret-access-key
- Amazon Secret Access Key.aws-region
- The region where the bucket is located.aws-bucket
- The name of the region.aws-filepath
- The file path of the file.
name: Creating Badges
on: push
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: alvivi/shield-badge@v1
with:
aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }}
aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
aws-region: my.region
aws-bucket: my-s3-bucket
aws-filepath: ${{ github.repository }}
label: Custom Badge
text: It's Working!
The scripts and documentation in this project are released under the MIT License