浏览代码

workflow: add contributors readme action

kailong321200875 3 年之前
父节点
当前提交
e867e16fc4
共有 4 个文件被更改,包括 50 次插入0 次删除
  1. 16 0
      .github/workflows/reademe-contributors-zh-CN.yml
  2. 14 0
      .github/workflows/reademe-contributors.yml
  3. 10 0
      README.md
  4. 10 0
      README.zh-CN.md

+ 16 - 0
.github/workflows/reademe-contributors-zh-CN.yml

@@ -0,0 +1,16 @@
+on:
+  push:
+    branches:
+      - master
+
+jobs:
+  contrib-readme-job:
+    runs-on: ubuntu-latest
+    name: A job to automate contrib in readme
+    steps:
+      - name: Contribute List
+        uses: akhilmhdh/contributors-readme-action@v2.3.4
+        with:
+          readme_path: README.zh-CN.md
+        env:
+          GITHUB_TOKEN: ${{ secrets.ACTIONS_DEPLOY_KEY }}

+ 14 - 0
.github/workflows/reademe-contributors.yml

@@ -0,0 +1,14 @@
+on:
+  push:
+    branches:
+      - master
+
+jobs:
+  contrib-readme-job:
+    runs-on: ubuntu-latest
+    name: A job to automate contrib in readme
+    steps:
+      - name: Contribute List
+        uses: akhilmhdh/contributors-readme-action@v2.3.4
+        env:
+          GITHUB_TOKEN: ${{ secrets.ACTIONS_DEPLOY_KEY }}

+ 10 - 0
README.md

@@ -130,3 +130,13 @@ Support modern browsers, not IE
 ## License
 
 [MIT](./LICENSE)
+
+## Collaborators
+
+<!-- readme: collaborators -start -->
+<!-- readme: collaborators -end -->
+
+## Contributors
+
+<!-- readme: contributors -start -->
+<!-- readme: contributors -end -->

+ 10 - 0
README.zh-CN.md

@@ -130,3 +130,13 @@ pnpm run build:pro
 ## 许可证
 
 [MIT](./LICENSE)
+
+## 合作者
+
+<!-- readme: collaborators -start -->
+<!-- readme: collaborators -end -->
+
+## 贡献者
+
+<!-- readme: contributors -start -->
+<!-- readme: contributors -end -->