action-update-copyright-years-in-license-file.yml 576 B

12345678910111213141516171819202122232425
  1. name: Update copyright year(s) in license file
  2. on:
  3. workflow_dispatch:
  4. schedule:
  5. - cron: "0 3 1 1 *" # 03:00 AM on January 1
  6. permissions:
  7. contents: write
  8. pull-requests: write
  9. jobs:
  10. update-license-year:
  11. runs-on: ubuntu-latest
  12. steps:
  13. - name: Checkout
  14. uses: actions/checkout@v7
  15. with:
  16. fetch-depth: 0
  17. persist-credentials: false
  18. - name: Action Update License Year
  19. uses: FantasticFiasco/action-update-license-year@v3
  20. with:
  21. token: ${{ secrets.GITHUB_TOKEN }}
  22. path: LICENSE.md