generated from actions-cool/action-js-template
-
Notifications
You must be signed in to change notification settings - Fork 0
39 lines (34 loc) · 1.05 KB
/
contributor-help.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
name: Contributor Helper
on:
schedule:
- cron: '0 0 0 1 *'
jobs:
contributor:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
- uses: actions-cool/contributor-helper@v1.0.0
with:
token: ${{ secrets.GITHUB_TOKEN }}
update-files: 'DEMO.base.md'
update-places: '## Contributors List/## hi'
repo: 'antvis/X6'
style: 'base'
avatar-width: '66'
- uses: actions-cool/contributor-helper@v1.0.0
with:
token: ${{ secrets.GITHUB_TOKEN }}
update-files: 'DEMO.simple.md'
update-places: '## Contributors List/## hello'
repo: 'antvis/X6'
style: 'simple'
avatar-width: '66'
- name: Commit and push if changed
run: |-
git diff
git config --global user.email "github-actions@github.com"
git config --global user.name "github-actions"
git pull
git add -A
git commit -m "🤖 Auto update contributors" || exit 0
git push