name: Update Transitive Dependencies

on:
  schedule:
    - cron: '15 11 * * 0' # weekly, on Sunday morning (UTC)
  workflow_dispatch:

jobs:
  update:
    name: Tests
    runs-on: macos-latest

    steps:
    - uses: actions/checkout@v2
    - uses: actions/setup-node@v2
      with:
        node-version: 16
    - name: remove and re-create lock file
      run: |
        rm package-lock.json
        npm install
    - name: Create Pull Request
      id: cpr
      uses: peter-evans/create-pull-request@v3
      with:
          token: ${{ secrets.ZORGBORT_TOKEN }}
          commit-message: Update Transitive Dependencies
          title: Update Transitive Dependencies
          body: |
            - Dependency updates

            Auto-generated by [create-pull-request][1]

            [1]: https://github.com/peter-evans/create-pull-request
          branch: auto-update-dependencies
          labels: dependencies
    - name: Enable Pull Request Automerge
      if: steps.cpr.outputs.pull-request-operation == 'created'
      uses: peter-evans/enable-pull-request-automerge@v1
      with:
        token: ${{ secrets.ZORGBORT_TOKEN }}
        pull-request-number: ${{ steps.cpr.outputs.pull-request-number }}
        merge-method: merge

name: Update Transitive Dependencies

on:
  schedule:
    - cron: '15 11 * * 0' # weekly, on Sunday morning (UTC)
  workflow_dispatch:

jobs:
  update:
    name: Run Update
    runs-on: macos-latest

    steps:
    - uses: actions/checkout@v2
    - uses: actions/setup-node@v2
      with:
        node-version: 16
    - name: remove and re-create lock file
      run: |
        rm package-lock.json
        npm install
    - name: Create Pull Request
      id: cpr
      uses: peter-evans/create-pull-request@v3
      with:
          token: ${{ secrets.ZORGBORT_TOKEN }}
          commit-message: Update Transitive Dependencies
          title: Update Transitive Dependencies
          body: |
            - Dependency updates

            Auto-generated by [create-pull-request][1]

            [1]: https://github.com/peter-evans/create-pull-request
          branch: auto-update-dependencies
          labels: dependencies
    - name: Enable Pull Request Automerge
      if: steps.cpr.outputs.pull-request-operation == 'created'
      uses: peter-evans/enable-pull-request-automerge@v1
      with:
        token: ${{ secrets.ZORGBORT_TOKEN }}
        pull-request-number: ${{ steps.cpr.outputs.pull-request-number }}
        merge-method: merge

Fix the name of an action
Fix the name of an action

Tests isn't what this does, it updates.
