name: Update Transitive Dependencies

on:
  schedule:
    - cron: '15 14 * * 1' # weekly, on Monday morning (UTC)

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

    steps:
    - uses: actions/checkout@v2
    - uses: actions/setup-node@v1
      with:
        node-version: 12
    - name: remove and re-create lock file
      run: |
        rm package-lock.json
        npm install
    - name: Create Pull Request
      uses: peter-evans/create-pull-request@v2
      with:
          token: ${{ secrets.GITHUB_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: Update Transitive Dependencies

on:
  schedule:
    - cron: '15 14 * * 1' # weekly, on Monday morning (UTC)

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

    steps:
    - uses: actions/checkout@v2
    - uses: actions/setup-node@v1
      with:
        node-version: 12
    - name: remove and re-create lock file
      run: |
        rm package-lock.json
        npm install
    - name: Create Pull Request
      uses: peter-evans/create-pull-request@v2
      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

Use the Zorgbort token to open PRs
Use the Zorgbort token to open PRs

Using the GITHUB_TOKEN other actions (like CI) won't run so we have to
use a personal access token to ensure that the actions run and we get
tests results.
