Skip to content

Nivmizz7/annual-update-license-year

Use this GitHub action with your project
Add this Action to an existing workflow or create a new one
View on Marketplace

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Update License Year

GitHub release GitHub stars GitHub forks License GitHub Actions

A simple GitHub Action to automatically update the year in your LICENSE files.


Quick Start

Add this to your workflow file (.github/workflows/update-license.yml):

name: Update License Year

on:
  schedule:
    - cron: '0 0 1 1 *'    # Run every January 1st
  workflow_dispatch:        # Allow manual trigger

jobs:
  update:
    runs-on: ubuntu-latest
    permissions:
      contents: write
    steps:
      - uses: actions/checkout@v4
      - uses: nivmizz7/annual-update-license-year@v1
        with:
          token: ${{ secrets.GITHUB_TOKEN }}

How It Works

  1. Finds all LICENSE files in your repo
  2. Replaces all years with the current year
  3. Commits and pushes changes automatically

That's it! Super simple.


Supported Files

  • LICENSE
  • LICENSE.md
  • LICENSE.txt
  • COPYING
  • COPYING.md

Example Transformations

Copyright (c) 2020
    ↓
Copyright (c) 2020-2026

Copyright © 2019
    ↓
Copyright © 2019-2026

Copyright (c) 2020-2024
    ↓
Copyright (c) 2020-2026

(c) 2020
    ↓
(c) 2020-2026

License

MIT License - See LICENSE

About

GitHub Action for update the year in the license.

Resources

License

Stars

Watchers

Forks

Contributors

Languages