-
-
Notifications
You must be signed in to change notification settings - Fork 24
26 lines (21 loc) · 770 Bytes
/
collaborators.yml
File metadata and controls
26 lines (21 loc) · 770 Bytes
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
name: Fetch Contributors
on:
schedule:
- cron: '0 0 * * *' # Runs daily at midnight
workflow_dispatch: # Allows manual triggering
jobs:
fetch-contributors:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Fetch contributors
run: |
curl -s https://api.github.com/repos/Mistium/Origin-OS/contributors > contributors.json
- name: Commit changes if any
run: |
git config --global user.name 'GitHub Actions'
git config --global user.email 'actions@github.com'
git add contributors.json
git diff --quiet && git diff --staged --quiet || git commit -m "Update contributors list"
git push