-
Notifications
You must be signed in to change notification settings - Fork 69
31 lines (24 loc) · 945 Bytes
/
contributor.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
name: Fetch-Contributor-List
on:
workflow_dispatch:
permissions:
contents: write
# Fetch contributor list and add to community.json
jobs:
fetch-contributor-list:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Fetch Contributors and
run: |
curl -s https://api.github.com/repos/aialok/open-source-IIIT-Ranchi/contributors | jq '[.[] | { id: .id, img: .avatar_url, alt: .login, github_url : .html_url }]' > community.json
- name: Commit Contributor List
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
git config --global user.email "github-actions[bot]@users.noreply.github.com"
git config --global user.name "github-actions[bot]"
git add community.json
git commit -m "Update community.json"
git push