feat: Contributors actions
All checks were successful
DCO checker / DCO checker (pull_request) Successful in 3s
Rust CI / Rust CI (pull_request) Successful in 4m34s

Signed-off-by: Awiteb <a@4rs.nl>
This commit is contained in:
Awiteb 2024-07-20 15:57:39 +03:00
parent bb66f4d71b
commit 4bda036ba7
Signed by: awiteb
GPG key ID: 3F6B55640AA6682F

View file

@ -0,0 +1,30 @@
name: Update Contributors
on:
push:
branches: [master]
jobs:
update_contributors:
name: Update Contributors
runs-on: debian
steps:
- uses: actions/checkout@v4
with:
ref: master
fetch-depth: 0
- name: Install just
run: |
curl --proto '=https' --tlsv1.2 -sSf https://just.systems/install.sh | bash -s -- --to ./bin
- name: Update Contributors
run: |
./bin/just contributors
if [ -n "$(git status --porcelain)" ]; then
git config user.name forgejo-actions
git config user.email forgejo-actions@noreply.localhost
git add CONTRIBUTORS.md
git commit -m "Update CONTRIBUTORS.md"
git push
else
echo "No changes to CONTRIBUTORS.md"
fi