workflow: add contributors-readme-action

This commit is contained in:
陈凯龙 2022-04-12 09:05:51 +08:00
parent d8b507bab9
commit 72e2ef5f55
2 changed files with 25 additions and 20 deletions

View File

@ -17,26 +17,6 @@ on:
status: {}
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 }}
# 合并发布版本的 pr 到 master
auto-merge:
runs-on: ubuntu-latest

View File

@ -0,0 +1,25 @@
on:
push:
branches:
- master
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 }}