Skip to content
You're viewing an older version of this GitHub Action. Do you want to see the latest version instead?
bar-chart

GitHub Action

Starcharts Action

v1

Starcharts Action

bar-chart

Starcharts Action

Plot your repository stars over time

Installation

Copy and paste the following snippet into your .yml file.

              

- name: Starcharts Action

uses: maolonglong/actions-starcharts@v1

Learn more about this action in maolonglong/actions-starcharts

Choose a version

Starcharts Action

灵感来自 caarlos0/starcharts,用 Actions 避免了 GitHub API 的速率限制

入参

参数 描述 是否必传 默认值
github_token 用于提交时身份验证的 token
svg_path 星图的保存路径 STARCHARTS.svg
commit_message 提交信息 chore: update starcharts [skip ci]

示例

新建 .github/workflows/starcharts.yml,内容如下:

name: Starcharts

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

jobs:
  update-readme:
    name: Generate starcharts
    runs-on: ubuntu-latest
    steps:
      - uses: MaoLongLong/actions-starcharts@main
        with:
          github_token: ${{ secrets.GITHUB_TOKEN }}
          svg_path: STARCHARTS.svg