-
-
Notifications
You must be signed in to change notification settings - Fork 97
31 lines (24 loc) · 737 Bytes
/
update_authorsmd.yml
File metadata and controls
31 lines (24 loc) · 737 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
27
28
29
30
31
name: Update AUTHORS.md
on:
push:
branches: [ main, master ]
permissions:
contents: write
jobs:
update-authors:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4.2.2
with:
fetch-depth: 0
- name: Make the script file executable
run: chmod +x ./scripts/update-authors.sh
- name: Run script to update authors data
run: ./scripts/update-authors.sh
- name: Commit and push changes
run: |
git config --local user.email "github-actions[bot]@users.noreply.github.com"
git config --local user.name "github-actions[bot]"
git add .
git diff --quiet && git diff --staged --quiet || git commit -m "Autoupdate AUTHORS.md"
git push