Skip to content

Commit 469fa35

Browse files
author
Harry Stevens
committed
chore: update copyright year and add annual update workflow
1 parent 6931efd commit 469fa35

2 files changed

Lines changed: 25 additions & 1 deletion

File tree

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
name: Update Copyright Year
2+
3+
on:
4+
schedule:
5+
- cron: "0 0 1 1 *"
6+
workflow_dispatch:
7+
8+
jobs:
9+
update-copyright:
10+
runs-on: ubuntu-latest
11+
permissions:
12+
contents: write
13+
pull-requests: write
14+
steps:
15+
- uses: actions/checkout@v4
16+
- name: Update copyright year in LICENSE
17+
run: sed -i "s/Copyright (c) 2020-[0-9]*/Copyright (c) 2020-$(date +%Y)/" LICENSE
18+
- name: Create Pull Request
19+
uses: peter-evans/create-pull-request@v7
20+
with:
21+
commit-message: "chore: update copyright year to $(date +%Y)"
22+
title: "chore: update copyright year to $(date +%Y)"
23+
branch: update-copyright-year
24+
body: Automated copyright year update.

LICENSE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
MIT License
22

3-
Copyright (c) 2024 Harry Stevens
3+
Copyright (c) 2020-2026 Harry Stevens
44

55
Permission is hereby granted, free of charge, to any person obtaining a copy
66
of this software and associated documentation files (the "Software"), to deal

0 commit comments

Comments
 (0)