阿川私房教材:
學 JavaScript 前端,帶作品集去面試!

63 個專案實戰,寫出作品集,讓面試官眼前一亮!

立即開始免費試讀!

透過 GitHub Actions 自動抓取自己寫的 CodeLove 文章,並更新專案根目錄的 README.md

使用方法

  1. 創建檔案 .github/workflows/codelove-updater.yml 在專案中:
name: Test Codelove Blog Updater

# You can modify the workflow to run on different events
on:
  workflow_run:
    workflows: ['Build Action']
    types:
      - completed
    branches: [main]
  workflow_dispatch:

permissions:
  contents: write

jobs:
  test-action:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v3
      - name: Test Codelove Blog Updater
        uses: jaosn60810/readme-codelove-list@main
        with:
          GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
          # 換成自己的 USERNAME
          CODELOVE_USERNAME: 'XXX'

      - name: Commit changes
        uses: EndBug/add-and-commit@v9
        with:
          message: 'test: update README with latest blog posts'
          add: 'README.md'
  1. 把標籤加到要顯示的地方:
## Latest Blog Posts

<!-- UPDATE_CODELOVE:START -->
文章會列在這裡
<!-- UPDATE_CODELOVE:END -->
按讚的人:

共有 0 則留言


此人尚未填寫簡介。

阿川私房教材:
學 JavaScript 前端,帶作品集去面試!

63 個專案實戰,寫出作品集,讓面試官眼前一亮!

立即開始免費試讀!