update-copyright-years-in-license-file.yml 642 B

123456789101112131415161718192021222324
  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. jobs:
  7. update-license-year:
  8. runs-on: ubuntu-latest
  9. steps:
  10. - name: Checkout
  11. uses: actions/checkout@v3
  12. with:
  13. fetch-depth: 0
  14. - name: Action Update License Year
  15. uses: FantasticFiasco/action-update-license-year@v3
  16. with:
  17. token: ${{ secrets.GITHUB_TOKEN }}
  18. path: LICENSE.md
  19. - name: Merge pull request
  20. env:
  21. GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
  22. run: |
  23. gh pr merge --merge --delete-branch