An open API service indexing awesome lists of open source software.

https://github.com/muhammadrafayasif/credly-badges

A github workflow to fetch your Credly badges and display them in the form of an SVG file.
https://github.com/muhammadrafayasif/credly-badges

actions badges hacktoberfest python scraper svg workflow

Last synced: 2 months ago
JSON representation

A github workflow to fetch your Credly badges and display them in the form of an SVG file.

Awesome Lists containing this project

README

          

# 🏅 Credly Badges GitHub Action

Automatically scrape your **Credly badges** and generate a neat grid that you can use in your GitHub profile README.

---

## ✨ Features
- Scrapes all badges from a given **Credly username**
- Dynamically updates the README of your profile to include all Credly badges
- Runs **daily** or on manual dispatch
- Can be used as a **GitHub Action** or standalone script

---

## 🚀 Usage

Add the following workflow to `.github/workflows/daily-badges.yml` in your repo:

>[!NOTE]
> Replace `credly-username` with your username from Credly

```yaml
name: Daily Credly Badges

on:
schedule:
- cron: '0 12 * * *' # runs daily at 12:00 UTC
workflow_dispatch: # manual trigger

jobs:
fetch-badges:
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- uses: actions/checkout@v3

- name: Fetch Credly Badges
uses: muhammadrafayasif/credly-badges@v1.0.1
with:
credly-username: "[username]"
output-path: "badges"

- name: Commit updated badges
run: |
git config user.name "github-actions[bot]"
git config user.email "github-actions[bot]@users.noreply.github.com"
git add README.md
git commit -m "chore: update Credly badges [skip ci]" || echo "No changes to commit"
git push
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
```
## 🖼️ Demonstration

Credly Badge
Credly Badge
Credly Badge
Credly Badge
Credly Badge
Credly Badge
Credly Badge
Credly Badge
Credly Badge
Credly Badge
Credly Badge
Credly Badge
Credly Badge