浏览代码

workflow: update actions

陈凯龙 3 年之前
父节点
当前提交
e16f6f2f6c
共有 1 个文件被更改,包括 21 次插入0 次删除
  1. 21 0
      .github/workflows/release.yml

+ 21 - 0
.github/workflows/release.yml

@@ -6,7 +6,28 @@ on:
 name: Release
 
 jobs:
+  contrib-readme-en-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.CONTRIBUTORS_TOKEN }}
+
+  contrib-readme-job:
+    runs-on: ubuntu-latest
+    name: A job to automate contrib in readme.zh-CN
+    steps:
+      - name: Contribute List
+        uses: akhilmhdh/contributors-readme-action@v2.3.4
+        with:
+          readme_path: README.zh-CN.md
+        env:
+          GITHUB_TOKEN: ${{ secrets.CONTRIBUTORS_TOKEN }}
+
   release-please:
+    needs: [contrib-readme-en-job, contrib-readme-job]
     runs-on: ubuntu-latest
     steps:
       - uses: GoogleCloudPlatform/release-please-action@v3