Skip to content
Use this GitHub action with your project
Add this Action to an existing workflow or create a new one
View on Marketplace

Latest commit

ย 

History

31 Commits

Folders and files

NameName
Last commit message
Last commit date
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

๐Ÿค  FATALDRAW Profile Card

KOR

๋‹น์‹ ์˜ ๊นƒํ—ˆ๋ธŒ ํ™œ๋™ ๋‚ด์—ญ์„ FATALDRAW์‹ ํ˜„์ƒ์ˆ˜๋ฐฐ ํฌ์Šคํ„ฐ ์Šคํƒ€์ผ์˜ ํ”ฝ์…€ ์•„ํŠธ๋กœ ๋งŒ๋“ค์–ด์ฃผ๋Š” ์•ก์…˜์ž…๋‹ˆ๋‹ค.
์ปค๋ฐ‹, ์Šคํƒ€, PR ์ˆ˜์— ๋”ฐ๋ผ ๋‹น์‹ ์˜ ํ˜„์ƒ๊ธˆ(Bounty) ์ด ์ฑ…์ •๋˜๊ณ , ๊ทธ์— ๋งž๋Š” ์œ„ํ—˜ ๋“ฑ๊ธ‰(Rank) ๋„์žฅ์ด ์ฐํž™๋‹ˆ๋‹ค!

ํŠน์ง• (Features)

  • ํ˜„์ƒ๊ธˆ ์‹œ์Šคํ…œ: ํ™œ๋™๋Ÿ‰์— ๋”ฐ๋ผ ํ˜„์ƒ๊ธˆ์ด ์ตœ๋Œ€ $99,999,999๊นŒ์ง€ ์˜ฌ๋ผ๊ฐ‘๋‹ˆ๋‹ค.

  • ๋“ฑ๊ธ‰ ์‹œ์Šคํ…œ: ํ˜„์ƒ๊ธˆ ์•ก์ˆ˜์— ๋”ฐ๋ผ S+ ๋ถ€ํ„ฐ D ๊นŒ์ง€ ๋“ฑ๊ธ‰์ด ๋งค๊ฒจ์ง‘๋‹ˆ๋‹ค.

  • ๋นˆํ‹ฐ์ง€ ํšจ๊ณผ: ์ข…์ด ์งˆ๊ฐ๊ณผ ์ž‰ํฌ ๋ฒˆ์ง ํšจ๊ณผ๊ฐ€ ์ž๋™์œผ๋กœ ์ ์šฉ๋ฉ๋‹ˆ๋‹ค.

  • ๋ฉ€ํ‹ฐ ์บ๋ฆญํ„ฐ: Juno์™€ Rosalyn ์ค‘ ์›ํ•˜๋Š” ์บ๋ฆญํ„ฐ๋ฅผ ์„ ํƒํ•  ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค.

์บ๋ฆญํ„ฐ ์ข…๋ฅ˜

Juno Rosalyn
12 13

Quick Start

๋ณต์žกํ•œ ์„ค์ • ์—†์ด ๋ฐ”๋กœ ์ ์šฉํ•ด ๋ณด์„ธ์š”!

1๋‹จ๊ณ„: ์›Œํฌํ”Œ๋กœ์šฐ ํŒŒ์ผ ๋งŒ๋“ค๊ธฐ

  1. ๋ณธ์ธ์˜ ๋ฆฌํฌ์ง€ํ† ๋ฆฌ์—์„œ .github/workflows ํด๋”๋กœ ์ด๋™ํ•ฉ๋‹ˆ๋‹ค. (์—†์œผ๋ฉด ์ƒ์„ฑํ•ด์ฃผ์„ธ์š”)
  2. profile-card.yml ํŒŒ์ผ์„ ์ƒˆ๋กœ ๋งŒ๋“ค๊ณ  ์•„๋ž˜ ์ฝ”๋“œ๋ฅผ ๊ทธ๋Œ€๋กœ ๋ณต์‚ฌํ•ด ๋ถ™์—ฌ๋„ฃ์Šต๋‹ˆ๋‹ค.
name: FATALDRAW Profile Card

on:
  schedule:
    - cron: '0 0 * * *'
  workflow_dispatch:

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

      - name: Generate Wanted Poster
        uses: DevBawky/FATALDRAW_Github_Profile_Card@main
        with:
          username: ${{ github.repository_owner }}
          token: ${{ secrets.GITHUB_TOKEN }} # ๋น„๊ณต๊ฐœ ์ปค๋ฐ‹๊นŒ์ง€ ํ•ฉํ•˜๋ ค๋ฉด Configuration์„ ์ฐธ๊ณ ํ•ด์ฃผ์„ธ์š”
          character: 'Juno' # Choose Character you want (Juno / Rosalyn)

      - name: Move to dist
        run: |
          mkdir -p dist
          mv stats.svg dist/

      - name: Push to Output Branch
        uses: crazy-max/ghaction-github-pages@v3
        with:
          target_branch: output
          build_dir: dist
          keep_history: true
        env:
          GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

2. ์ ์šฉ ํ™•์ธ

  1. ํŒŒ์ผ์„ Commit ํ•ฉ๋‹ˆ๋‹ค.
  2. ๋ฆฌํฌ์ง€ํ† ๋ฆฌ ์ƒ๋‹จ [Actions] ํƒญ์„ ํด๋ฆญํ•ฉ๋‹ˆ๋‹ค.
  3. ์™ผ์ชฝ ๋ฉ”๋‰ด์—์„œ FATALDRAW Profile Card ๋ฅผ ํด๋ฆญํ•˜๊ณ , ์˜ค๋ฅธ์ชฝ Run workflow ๋ฒ„ํŠผ์„ ๋ˆŒ๋Ÿฌ ์ˆ˜๋™์œผ๋กœ ์‹คํ–‰ํ•ด์ค๋‹ˆ๋‹ค.
  4. ์•ฝ 10์ดˆ ํ›„ ์ดˆ๋ก์ƒ‰ ์ฒดํฌ๊ฐ€ ๋œจ๋ฉด ์„ฑ๊ณต์ž…๋‹ˆ๋‹ค!

3. ํ”„๋กœํ•„(README.md)์— ์ด๋ฏธ์ง€ ๋„์šฐ๊ธฐ

์ด์ œ ์ƒ์„ฑ๋œ ์ด๋ฏธ์ง€๋ฅผ ๋ณธ์ธ์˜ ํ”„๋กœํ•„(README.md) ์— ๋ถ™์—ฌ๋„ฃ์œผ์„ธ์š”!
๋ฐ˜๋“œ์‹œ ๋ณธ์ธ ์•„์ด๋”” ์™€ ๋ฆฌํฌ์ง€ํ† ๋ฆฌ๋ช… ์œผ๋กœ src ๋ฅผ ์ˆ˜์ •ํ•ด์•ผ ํ•ฉ๋‹ˆ๋‹ค!!

<div align="center">
  <a href="https://github.com/DevBawky/FATALDRAW_Github_Profile_Details.git">
      <img src="https://github.com/{YOUR_GITHUB_ID}/{YOUR_REPOSITORY_NAME}/raw/output/stats.svg" width="600" alt="FATALDRAW" />
  </a>
</div>

Configuration

์บ๋ฆญํ„ฐ ๋ณ€๊ฒฝ ๋ฐฉ๋ฒ•

profile-card.yml ์—์„œ character ๊ฐ’์„ ๋ณ€๊ฒฝํ•˜๋ฉด ์บ๋ฆญํ„ฐ๊ฐ€ ๋ฐ”๋€๋‹ˆ๋‹ค!

    steps:
      - uses: actions/checkout@v3

      - name: Generate Wanted Poster
        uses: DevBawky/FATALDRAW_Github_Profile_Card@main
        with:
          username: ${{ github.repository_owner }}
          token: ${{ secrets.GITHUB_TOKEN }}
          character: 'Juno' # (Juno / Rosalyn)

Private ๋‚ด์—ญ๊นŒ์ง€ ํฌํ•จํ•˜๊ณ  ์‹ถ๋‹ค๋ฉด?

๊ธฐ๋ณธ ์„ค์ • (secrets.GITHUB_TOKEN) ์€ ๊ณต๊ฐœ(Public) ๋ฆฌํฌ์ง€ํ† ๋ฆฌ ์˜ ํ™œ๋™๋งŒ ์ง‘๊ณ„ํ•ฉ๋‹ˆ๋‹ค.
๋น„๊ณต๊ฐœ ์ปค๋ฐ‹๊นŒ์ง€ ๋ชจ๋‘ ํ•ฉ์ณ์„œ "์ง„์งœ ํ˜„์ƒ๊ธˆ"์„ ๋ณด๊ณ  ์‹ถ๋‹ค๋ฉด ์•„๋ž˜ ๋‹จ๊ณ„๋ฅผ ๋”ฐ๋ผํ•˜์„ธ์š”.

  1. Personal access tokens (classic) ์œผ๋กœ ์ด๋™ํ•˜์—ฌ
    Generate new token -> Generate new token(classic) ์„ ๋ฐœ๊ธ‰๋ฐ›์Šต๋‹ˆ๋‹ค.
    (๊ผญ ghp_ ๋กœ ์‹œ์ž‘ํ•˜๋Š” ํ‚ค๋ฅผ ๊ธฐ์–ตํ•ด๋‘์„ธ์š”!)

  2. ์•„๋ž˜์˜ ์‚ฌ์ง„๊ณผ ๊ฐ™์ด ๊ถŒํ•œ์„ ์ฒดํฌํ•ด์ฃผ์„ธ์š”.

  1. ๋ฆฌํฌ์ง€ํ† ๋ฆฌ Settings -> Secrets and variables -> Actions ๋กœ ์ด๋™ํ•ฉ๋‹ˆ๋‹ค.
  1. New repository secret ์„ ๋ˆ„๋ฆ…๋‹ˆ๋‹ค.
  1. ์ด๋ฆ„์„ GH_TOKEN ์œผ๋กœ ํ•˜์—ฌ ์•„๊นŒ ์ €์žฅํ•ด๋‘” ghp_xxxxx ๋กœ ์‹œ์ž‘ํ•˜๋Š” ๊ฐ’์„ ๋ถ™์—ฌ๋„ฃ์€ ํ›„ Add secret ๋ฒ„ํŠผ์„ ๋ˆŒ๋Ÿฌ ํ† ํฐ์„ ์ €์žฅํ•ฉ๋‹ˆ๋‹ค.
  1. profile-card.yml ์œผ๋กœ ์ด๋™ํ•˜์—ฌ ์•„๋ž˜์™€ ๊ฐ™์ด ์ฝ”๋“œ๋ฅผ ์ˆ˜์ •ํ•ฉ๋‹ˆ๋‹ค.
   with:
      username: ${{ github.repository_owner }}
      token: ${{ secrets.GH_TOKEN }} # GITHUB_TOKEN -> GH_TOKEN
      character: 'Juno'

FAQ

Q1. Error: Resource not accessible by integration ์˜ค๋ฅ˜๊ฐ€ ๋‚˜์š”!

  • ๊ถŒํ•œ ๋ฌธ์ œ์ž…๋‹ˆ๋‹ค. ๋ฆฌํฌ์ง€ํ† ๋ฆฌ Settings -> Actions -> General ๋กœ ์ด๋™ํ•ด์„œ,
    Workflow permission ํ•ญ๋ชฉ์„ Read and write permissions ๋กœ ์ฒดํฌ ํ›„ ์ €์žฅํ•ด์ฃผ์„ธ์š”!

Q2. ์ด๋ฏธ์ง€๊ฐ€ ๊นจ์ ธ์„œ ๋‚˜์™€์š”!

  • ์•ก์…˜์ด ์•„์ง ์‹คํ–‰๋˜์ง€ ์•Š์•„ output ๋ธŒ๋žœ์น˜์— ํŒŒ์ผ์ด ์—†๋Š” ์ƒํƒœ์ž…๋‹ˆ๋‹ค.
    Actions ํƒญ์—์„œ Run workflow ๋ฅผ ๋ˆŒ๋Ÿฌ ์ˆ˜ ๋™์œผ๋กœ ์‹คํ–‰ํ•ด์ฃผ์„ธ์š”!

ยฉ Credits

  • Art & Code: DevBawky
  • Font: Press Start 2P (Google Fonts)

EN

This GitHub Action turns your GitHub activity into a FATALDRAW-style wanted poster rendered in pixel art.
Based on your commits, stars, and pull requests, your personal Bounty is calculated and stamped with a matching Danger Rank!

Features

  • Bounty System: Your bounty increases with activity, up to $99,999,999.
  • Rank System: Ranks are assigned from S+ down to D based on your bounty.
  • Vintage Effect: Paper texture and ink-bleed effects are automatically applied.
  • Multiple Characters: Choose your preferred character between Juno and Rosalyn.

Characters

Juno Rosalyn
12 13

Quick Start

Get started instantly with minimal setup.

Step 1: Create the workflow file

  1. Navigate to the .github/workflows directory in your repository (create it if it does not exist).
  2. Create a new file named profile-card.yml and paste the following code.
name: FATALDRAW Profile Card

on:
  schedule:
    - cron: '0 0 * * *'
  workflow_dispatch:

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

      - name: Generate Wanted Poster
        uses: DevBawky/FATALDRAW_Github_Profile_Card@main
        with:
          username: ${{ github.repository_owner }}
          token: ${{ secrets.GITHUB_TOKEN }} # See Configuration to include private activity
          character: 'Juno' # Choose Character you want (Juno / Rosalyn)

      - name: Move to dist
        run: |
          mkdir -p dist
          mv stats.svg dist/

      - name: Push to Output Branch
        uses: crazy-max/ghaction-github-pages@v3
        with:
          target_branch: output
          build_dir: dist
          keep_history: true
        env:
          GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

Step 2: Run the workflow

  1. Commit the file.
  2. Open the [Actions] tab in your repository.
  3. Select FATALDRAW Profile Card from the left menu.
  4. Click the Run workflow button to execute it manually.
  5. If you see a green checkmark after about 10 seconds, you are good to go!

Step 3: Display the image in your profile (README.md)

Now paste the generated image into your profile README.md
Make sure to replace the GitHub ID and Repository Name in the src attribute.

<div align="center">
  <a href="https://github.com/DevBawky/FATALDRAW_Github_Profile_Details.git">
      <img src="https://github.com/{YOUR_GITHUB_ID}/{YOUR_REPOSITORY_NAME}/raw/output/stats.svg" width="600" alt="FATALDRAW" />
  </a>
</div>

Configuration

Changing the character

You can switch characters by changing the character value in profile-card.yml!

    steps:
      - uses: actions/checkout@v3

      - name: Generate Wanted Poster
        uses: DevBawky/FATALDRAW_Github_Profile_Card@main
        with:
          username: ${{ github.repository_owner }}
          token: ${{ secrets.GITHUB_TOKEN }}
          character: 'Juno' # (Juno / Rosalyn)

Including private activity

By default, secrets.GITHUB_TOKEN only counts activity from public repositories.
If you want to include private commits and see your real bounty, follow the steps below.

  1. Go to Personal access tokens (classic)
    Click Generate new token -> Generate new token (classic).
    (Make sure to save the token that starts with ghp_)

  2. Enable the permissions as shown in the image below.

  1. Navigate to your repository Settings -> Secrets and variables -> Actions.
  1. Click New repository secret.
  1. Set the name to GH_TOKEN, paste the saved token that starts with ghp_xxxxx,
    then click Add secret.
  1. Open profile-card.yml and update it as shown below.
   with:
      username: ${{ github.repository_owner }}
      token: ${{ secrets.GH_TOKEN }} # GITHUB_TOKEN -> GH_TOKEN
      character: 'Juno'

FAQ

Q1. I get the error Error: Resource not accessible by integration

  • This is a permission issue.
    Go to Repository Settings -> Actions -> General and set
    Workflow permissions to Read and write permissions, then save.

Q2. The image is broken or not showing up

  • The Action has not been executed yet, so the file does not exist in the output branch.
    Go to the Actions tab and manually click Run workflow.

ยฉ Credits

  • Art & Code: DevBawky
  • Font: Press Start 2P (Google Fonts)

About

๐Ÿค  How much is your code worth? Check your bounty with this project !

Topics

Resources

Stars

6 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages