Browse Source

workflow: add contributors readme action

kailong321200875 3 years ago
parent
commit
e867e16fc4

+ 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 -->