Skip to content

Commit

Permalink
ci: Added Update LICENSE pipeline [skip ci]
Browse files Browse the repository at this point in the history
  • Loading branch information
samtrion committed Aug 3, 2023
1 parent d09863a commit 4e70a87
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 1 deletion.
29 changes: 29 additions & 0 deletions .github/workflows/update-license.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: Update copyright year in license file

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

jobs:
run:
runs-on: ubuntu-latest
steps:

- name: Checkout repository
uses: actions/checkout@v3
with:
fetch-depth: 0

- uses: FantasticFiasco/action-update-license-year@v3
with:
token: ${{ secrets.GITHUB_TOKEN }}
prTitle: 'chore: Updated LICENSE'
commitTitle: 'chore: Updated LICENSE [skip ci]'
id: license

- name: Merge PR
if: steps.license.outputs.pullRequestNumber != ''
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: gh pr merge --squash --admin --delete-branch ${{ steps.license.outputs.pullRequestNumber }}
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
MIT License

Copyright (c) 2023 .NET Evolve
Copyright (c) 2023 Daily DevOps & .NET

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 4e70a87

Please sign in to comment.