forked from Mickey0521/Codility-Python
-
Notifications
You must be signed in to change notification settings - Fork 0
27 lines (25 loc) · 742 Bytes
/
main.yml
File metadata and controls
27 lines (25 loc) · 742 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
name: Auto Update Authors
on:
push:
branches:
- main # Triggers when changes are pushed to main
jobs:
update-authors:
runs-on: ubuntu-latest
permissions:
contents: write
pull-requests: write
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0 # Required to get full git history for some operations
- name: Update AUTHORS file
run: |
git log --format='%aN <%aE>%n%cN <%cE>' | sort -u > AUTHORS
- name: Create Pull Request
uses: peter-evans/create-pull-request@v6
with:
commit-message: Update authors
title: Update AUTHORS
body: Automated update of the AUTHORS file.
branch: update-authors