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

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