DSA Stats Usage Guide

A Step-by-Step Guide to Showcasing Your DSA Skills and Setting Up Automation with GitHub Actions

Step 1

Type Your Username
Enter your Codolio username in the input area to generate an SVG file that can be embedded in your GitHub README profile. You can customize your svg according to your taste and share it with other with your own link.

Step 2

Set Up GitHub Actions
Follow these steps to set up GitHub Actions to automate the update of your SVG file:

  1. Create or Open Your GitHub Repository:

    Navigate to your GitHub account and either create a new repository or open an existing one where you want to set up the workflow.

  2. Access the Actions Tab:

    Go to the repository's main page. Click on the "Actions" tab located near the top of the page to access the workflows section.

  3. Set Up a New Workflow:

    Click the "New workflow" button or "Set up a workflow yourself" if you're setting it up manually.

  4. Configure the Workflow File:

    Copy the YAML code provided below and paste it into the editor:

    GitHub Action YAML File

    Replace 'your codolio username' with your actual Codolio username in the 'curl' command or you can change the entire URL to customize your card.

  5. Save and Commit the Workflow File:

    Save the file by naming it 'dsaStats.yml' or any other descriptive name. Click "Start commit" to commit the new workflow file to your repository.

  6. Verify the Workflow:

    Once committed, the workflow should be visible under the "Actions" tab. You can manually trigger the workflow to test it by clicking the "Run workflow" button on the workflow page.

  7. Check for Updates:

    The workflow will now run daily based on the schedule specified in the 'cron' expression (`0 0 * * *` for daily at midnight UTC). You can check the status and logs of each workflow run in the "Actions" tab to ensure everything is working correctly.

Step 3

Choose Your Version
You can choose between two versions of the DSA Stats card: a fixed size version and a variable width version. Here's the code for each:

Voila! 🎉 You now have a beautiful dsa stat dashboard on your GitHub profile!