name: Update copyright list
on:
  push:
    branches-ignore:
      - 'dependabot/**'
jobs:
  check-copyrights:
    runs-on: ubuntu-latest
    steps:
    - uses: actions/checkout@v6
    - name: Check
      run: |
        ./tools/check_copyrights.sh
    - uses: peter-evans/create-pull-request@v8
      with:
        token: ${{ secrets.GITHUB_TOKEN }}
        branch: update-copyright-list-${{ github.ref_name }}
        delete-branch: true
        commit-message: 'Update copyright list in license'
        title: 'Update copyright list in license'
        author: lballabio[bot] <224797326+lballabio-bot@users.noreply.github.com>
