Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Set up the update authors job #1701

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
41 changes: 41 additions & 0 deletions .github/workflows/update-authors.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
name: Update authors

on:
schedule:
- cron: '0 0 * * *'
workflow_dispatch:

jobs:
auto-update:
name: Update authors
if: ${{ github.repository == 'vacanza/python-holidays' }}
permissions:
contents: write
pull-requests: write
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 100

- uses: actions/[email protected]
with:
python-version: '3.11'

- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install gitpython

- run: scripts/update_authors.py

- uses: peter-evans/[email protected]
with:
base: dev
body: Update AUTHORS file contents.
branch: update-authors
commit-message: 'chore: Update authors'
committer: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
delete-branch: true
title: Update authors
token: ${{ github.token }}