-
Notifications
You must be signed in to change notification settings - Fork 13
51 lines (48 loc) · 1.46 KB
/
fetch_contributors.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
40
41
42
43
44
45
46
47
48
49
50
51
name: Fetch Contributors
on:
pull_request: # This will run the workflow on pull request events
types:
- closed
schedule: # This will run the workflow on a schedule
- cron: '0 0 * * 0'
workflow_dispatch: # This will run the workflow on manual trigger
jobs:
manually-update-contributors-list:
runs-on: ubuntu-latest
name: A job to automatically update the contributors list in the README.md
permissions:
contents: write
pull-requests: write
steps:
- name: Contribute List
uses: akhilmhdh/[email protected]
with:
readme_path: "docs/contributors.md"
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
#permissions:
# contents: write
# pull-requests: write
#
#jobs:
#
# contrib-readme-job:
# name: A job to automate contrib in readme
# runs-on: ubuntu-latest
#
# steps:
# - name: Checkout
# uses: actions/checkout@v4
#
# - name: Contribute List
# uses: akhilmhdh/[email protected]
# with:
# image_size: 32
# readme_path: ./docs/contributors.md
# env:
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
#
# - name: Commit changes
# if: github.event_name == 'workflow_dispatch' || github.event.pull_request.merged == true
# run: |
# printf '%s\n' '$(curl "https://api.github.com/repos/Mahmud0808/Iconify/contributors")' > ./app/src/main/assets/Misc/contributors.json