Skip to content

Commit

Permalink
ci: add update license workflow (#114)
Browse files Browse the repository at this point in the history
  • Loading branch information
zeshuaro committed Jan 26, 2023
1 parent f615dfc commit 3ed639f
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 1 deletion.
25 changes: 25 additions & 0 deletions .github/workflows/update_license.yml
@@ -0,0 +1,25 @@
name: Update license

on:
schedule:
- cron: "0 3 1 1 *" # 03:00 AM on January 1
workflow_dispatch:

jobs:
update-license:
name: Update license year
runs-on: ubuntu-latest

steps:
- name: Checkout 🛎️
uses: actions/checkout@v3
with:
fetch-depth: 0

- name: Update license year 🪪
uses: FantasticFiasco/action-update-license-year@v2.3.0
with:
token: ${{ secrets.PAT }}
commitTitle: 'docs(license): update copyright year to {{ currentYear }}'
prTitle: 'docs(license): update copyright year to {{ currentYear }}'
labels: documentation
2 changes: 1 addition & 1 deletion LICENSE
@@ -1,6 +1,6 @@
MIT License

Copyright (c) 2022 zeshuaro
Copyright (c) 2021-2022 zeshuaro

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

0 comments on commit 3ed639f

Please sign in to comment.