mirror of
https://github.com/abocn/TelegramBot.git
synced 2025-04-28 17:15:57 +00:00
33 lines
731 B
YAML
33 lines
731 B
YAML
name: Update AUTHORS File
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- main
|
|
|
|
jobs:
|
|
update-authors:
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
- name: Checkout repository
|
|
uses: actions/checkout@v3
|
|
|
|
- name: Generate AUTHORS file (Name <email> format)
|
|
run: |
|
|
git log --format='%aN <%aE>' | sort -u > AUTHORS
|
|
|
|
- name: Check if AUTHORS file changed
|
|
run: |
|
|
if git diff --quiet AUTHORS; then
|
|
echo "No changes in AUTHORS file."
|
|
exit 0
|
|
fi
|
|
|
|
- name: Commit and push changes
|
|
uses: EndBug/add-and-commit@v9.1.4
|
|
with:
|
|
add: "AUTHORS"
|
|
default_author: github_actions
|
|
message: "Update AUTHORS file automatically"
|