Skip to content

EduardaSRBastos/update-license-year-action

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

18 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Update License Year Action

GitHub License GitHub Actions Workflow Status GitHub Release GitHub repo size

This GitHub Action automatically updates the year in the `LICENSE` file of the repository.

Table of Contents

Features

  • Updates the year in the LICENSE file to the current year.
  • Commits and pushes the change automatically.
  • Skips execution if no LICENSE file is found.
  • Runs automatically on January 1st every year or manually when triggered.

How to Use

- Add via GitHub Marketplace

  • Go to the GitHub Actions Marketplace.
  • Click "Use latest version" to add it to your repository.
  • Follow the prompts to configure and enable the action.

- Manually Add to Your Workflow

  • Add the following file .github/workflows/update-license-year.yaml in your repository:

  • name: Update License Year
    on:
      schedule:
        - cron: '0 0 1 1 *'  # Runs every January 1st
      workflow_dispatch:  # Allows manual trigger
    
    jobs:
      update-license-year:
        runs-on: ubuntu-latest
        steps:
          - name: Update License Year Action
            uses: EduardaSRBastos/update-license-year-action/update-license-year@main
            with:
              github_token: ${{ secrets.GITHUB_TOKEN }}

Manual Trigger

To manually trigger the workflow:

  1. Go to GitHub → Your Repository → Actions.
  2. Select "Update License Year" workflow.
  3. Click "Run Workflow".

Contributing

  • Support this project by giving it a star ⭐. Thanks!
  • Feel free to suggest improvements or report any issues in the repository.

License

This project is licensed under the MIT License - see the LICENSE file for details.

About

A collection of GitHub Actions, like Update License Year Action

Topics

Resources

License

Stars

Watchers

Forks

Languages