This action creates a udemy rating badge for one or multiple courses (average).
It is recommended to set these as Github Secrets and use the secrets inside your github action yml file (see: https://docs.github.com/en/actions/security-guides/encrypted-secrets)
Required Token generated for call to instructor API (see: https://www.udemy.com/instructor/account/api/)
Required One or multiple course ID separated by commas (see: https://www.udemy.com/developers/instructor/methods/get-api-taught-courses-list/)
Optional Label text. Default "udemy"
.
Optional Label background color. Default "#983DE7"
(udemy logo color).
Optional Label foreground color. Default "#FFF"
.
Optional Rating foreground color. Default "#FFF"
.
Optional Radius for rounding corners of the badge. Default 3
Optional Path where the badge will be generated. Default ./github/badges
Optional Filename, without extension, of the file generated. Default udemy
uses: Clement-Jean/udemy-badge-generator@v1
env:
UDEMY_TOKEN: ${{ secrets.UDEMY_TOKEN }}
UDEMY_COURSE: ${{ secrets.UDEMY_COURSE }}