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

123456789101112131415161718192021222324
  1. ---
  2. name: Update copyright year(s) in license file
  3. on:
  4. workflow_dispatch:
  5. schedule:
  6. - cron: "0 3 1 1 *" # 03:00 AM on January 1
  7. jobs:
  8. update-license-year:
  9. runs-on: ubuntu-latest
  10. steps:
  11. - uses: actions/checkout@v3
  12. with:
  13. fetch-depth: 0
  14. - uses: FantasticFiasco/action-update-license-year@v3
  15. with:
  16. token: ${{ secrets.GITHUB_TOKEN }}
  17. path: LICENSE.md
  18. - name: Merge pull request
  19. env:
  20. GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
  21. run: |
  22. gh pr merge --merge --delete-branch