Last week, we launched our brand new Dev Cards with the OSCR (Open Source Contributor Rating) highlighted on the front to make it easier for you to showcase your impact in open source. To make it even easier, I've cooked up a little GitHub Action that'll automatically update your Dev Card on your GitHub profile.
In this post, we're gonna dive into what Dev Cards are all about, how this new GitHub Action works, and how you can get it set up.
If you head on over to your OpenSauced profile page, you can see your dev card now. Here's my OpenSauced profile. There's a little pizza card button you can press to see it.
The card is interactive and can be flipped.
Introducing the OpenSauced Dev Card GitHub Action
To make it easier to showcase your contributions, I've developed a GitHub Action that automates the process of fetching your OpenSauced dev card (static version) and updating it in your GitHub profile README.
A GitHub Action that automatically fetches and updates an OpenSauced dev card image for a specified GitHub user. It runs on a schedule or manual trigger, saving the image to the user's profile README repository for easy display.
OpenSauced Dev Card GitHub Action
This project fetches the OpenSauced dev card for an OpenSauced user with the GitHub username specified in the GitHub action.
To use this action, you need to add the following to a GitHub Actions workflow file.
name: Update OpenSauced Dev Cardon:
schedule:
- cron: "0 0 * * *"# Run daily at midnight UTCworkflow_dispatch: # Allow manual triggeringjobs:
update-dev-card:
runs-on: ubuntu-lateststeps:
- name: Update Dev Carduses: nickytonline/open-sauced-dev-card-action@v1.0.0with:
github-token: ${{ secrets.GITHUB_TOKEN }}username: "your_username"
We suggest you add this to a workflow file in the .github/workflows directory of your repository and call it something like update-open-sauced-dev-card.yml.
To use this action in your own GitHub profile, follow these steps:
Create a workflow file (e.g., .github/workflows/update-open-sauced-dev-card.yml) in your profile README repository.
Add the following content to the file:
name:Update OpenSauced Dev Cardon:schedule:-cron:"00***"# Run daily at midnight UTCworkflow_dispatch:# Allow manual triggeringjobs:update-dev-card:runs-on:ubuntu-lateststeps:-name:Update Dev Carduses:nickytonline/open-sauced-dev-card-action@v1.0.2with:github-token:${{ secrets.GITHUB_TOKEN }}username:"your_username"
Replace "your_username" with your actual GitHub username.
Add the following markdown to your README.md:
[![My OpenSauced Dev Card](./dev-card.png)](https://oss.fyi/your_username)
Again, replace your_username with your actual GitHub username.
Run the GitHub action manually the first time if you want to get an initial image. It's not a big deal if you don't, but it'll mean the image will look broken until the first time the action runs at midnight UTC.
Making the Most of Your Dev Card: Tips & Tricks
If you want to make the most of your dev card on your GitHub profile? Here are some tips:
Prime Real Estate: Place your card where you think it will be noticed on your README. First impressions count, and you want visitors to see your open source contributions. Maybe place it between your "About Me" and your "Current Projects" for a well-rounded profile.
Context is Key: Don't just leave your card hanging there. Add some text to introduce it. Something like: "Check out my open source contribution snapshot!"
The Secret Sauce: Understanding Your OSCR Score
Think of the OSCR as your open source score that looks at:
Your contribution frequency
The quality of your contributions
Your ability to start and be a part of open source conversations
Your OSCR score provides a quick snapshot of your open source activity and impact. It gives people an idea of how active and influential you are in the open source community.
Like any metric, your open source experience is about more than just one number.
Conclusion
Open source contributions are a fantastic way to grow as a developer and give back to the community. With this GitHub Action and OpenSauced, you can easily showcase your efforts and inspire others to get involved.