name: Update Plugin List

on:
  schedule:
    # Run daily at midnight.
    - cron: '0 0 * * *'
  workflow_dispatch:

jobs:
  createPullRequest:
    runs-on: ubuntu-latest
    steps:
      - name: Checkout
        uses: actions/checkout@v2
      - name: Setup Python
        uses: actions/setup-python@v2
        with:
          python-version: 3.8
      - name: Install dependencies
        run: |
          python -m pip install --upgrade pip
          pip install packaging requests tabulate[widechars]
      - name: Update Plugin List
        run: python scripts/update-plugin-list.py
      - name: Create Pull Request
        uses: peter-evans/create-pull-request@2455e1596942c2902952003bbb574afbbe2ab2e6
        with:
          commit-message: '[automated] Update plugin list'
          author: 'pytest bot <pytestbot@users.noreply.github.com>'
          branch: update-plugin-list/patch
          delete-branch: true
          branch-suffix: short-commit-hash
          title: '[automated] Update plugin list'
          body: '[automated] Update plugin list'

name: Update Plugin List

on:
  schedule:
    # At 00:00 on Sunday.
    # https://crontab.guru
    - cron: '0 0 * * 0'
  workflow_dispatch:

jobs:
  createPullRequest:
    runs-on: ubuntu-latest
    steps:
      - name: Checkout
        uses: actions/checkout@v2
      - name: Setup Python
        uses: actions/setup-python@v2
        with:
          python-version: 3.8
      - name: Install dependencies
        run: |
          python -m pip install --upgrade pip
          pip install packaging requests tabulate[widechars]
      - name: Update Plugin List
        run: python scripts/update-plugin-list.py
      - name: Create Pull Request
        uses: peter-evans/create-pull-request@2455e1596942c2902952003bbb574afbbe2ab2e6
        with:
          commit-message: '[automated] Update plugin list'
          author: 'pytest bot <pytestbot@users.noreply.github.com>'
          branch: update-plugin-list/patch
          delete-branch: true
          branch-suffix: short-commit-hash
          title: '[automated] Update plugin list'
          body: '[automated] Update plugin list'

Update plugin-list every Sunday instead of everyday
Update plugin-list every Sunday instead of everyday

Every day seems a bit excessive lately, let's make it less frequent.
