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