Skip to content

Commit 8b82a95

Browse files
authored
Create main.yml
1 parent babade0 commit 8b82a95

File tree

1 file changed

+27
-0
lines changed

1 file changed

+27
-0
lines changed

.github/workflows/main.yml

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
name: Auto Update Authors
2+
3+
on:
4+
push:
5+
branches:
6+
- main # Triggers when changes are pushed to main
7+
8+
jobs:
9+
update-authors:
10+
runs-on: ubuntu-latest
11+
permissions:
12+
contents: write
13+
pull-requests: write
14+
steps:
15+
- uses: actions/checkout@v4
16+
with:
17+
fetch-depth: 0 # Required to get full git history for some operations
18+
- name: Update AUTHORS file
19+
run: |
20+
git log --format='%aN <%aE>%n%cN <%cE>' | sort -u > AUTHORS
21+
- name: Create Pull Request
22+
uses: peter-evans/create-pull-request@v6
23+
with:
24+
commit-message: Update authors
25+
title: Update AUTHORS
26+
body: Automated update of the AUTHORS file.
27+
branch: update-authors

0 commit comments

Comments
 (0)