update-copyright-years-in-license-file.yml 753 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. pull-requests: write
  9. jobs:
  10. update-license-year:
  11. if: github.repository_owner == 'GameServerManagers'
  12. runs-on: ubuntu-latest
  13. steps:
  14. - name: Checkout
  15. uses: actions/checkout@v4
  16. with:
  17. fetch-depth: 0
  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
  23. - name: Merge pull request
  24. env:
  25. GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
  26. run: |
  27. gh pr merge --merge --delete-branch