name: Update dependencies

on:
  workflow_dispatch:
  schedule:
    - cron: '0 18 * * 0'  # "At 18:00 on Sunday."

jobs:
  update-dependencies:
    name: Update dependencies
    runs-on: ubuntu-latest
    steps:
    - uses: actions/checkout@v2
    - uses: actions/setup-python@v2
      with:
        python-version: "3.10-dev"
    - uses: excitedleigh/setup-nox@v2.0.0
    - name: "Run update: dependencies"
      run: nox --force-color
    - name: Create Pull Request
      if: github.ref == 'refs/heads/master' && github.repository == 'pypa/manylinux'
      uses: peter-evans/create-pull-request@v3
      with:
        commit-message: Update dependencies
        title: '[Bot] Update dependencies'
        body: |
          Update the versions of our dependencies.

          PR generated by "Update dependencies" [workflow](https://github.com/${{github.repository}}/actions/runs/${{github.run_id}}).
        branch: update-dependencies-pr
        delete-branch: true

name: Update dependencies

on:
  workflow_dispatch:
  schedule:
    - cron: '0 18 * * 0'  # "At 18:00 on Sunday."

jobs:
  update-dependencies:
    name: Update dependencies
    runs-on: ubuntu-latest
    steps:
    - uses: actions/checkout@v2
    - uses: actions/setup-python@v2
      with:
        python-version: "3.10-dev"
    - uses: excitedleigh/setup-nox@v2.0.0
    - name: "Run update: dependencies"
      run: nox --force-color
    # we use this step to grab a Github App auth token, so that PRs generated by this workflow
    # run the GHA tests.
    - uses: tibdex/github-app-token@v1
      id: generate-token
      with:
        app_id: ${{ secrets.MANYLINUX_BOT_APP_ID }}
        private_key: ${{ secrets.MANYLINUX_BOT_APP_PRIVATE_KEY }}
    - name: Create Pull Request
      if: github.ref == 'refs/heads/master' && github.repository == 'pypa/manylinux'
      uses: peter-evans/create-pull-request@v3
      with:
        commit-message: Update dependencies
        title: '[Bot] Update dependencies'
        body: |
          Update the versions of our dependencies.

          PR generated by "Update dependencies" [workflow](https://github.com/${{github.repository}}/actions/runs/${{github.run_id}}).
        branch: update-dependencies-pr
        token: ${{ steps.generate-token.outputs.token }}
        delete-branch: true

Use manylinux-bot for dependency updates
Use manylinux-bot for dependency updates