test_ok2/.github/workflows/update-plugin-list.yml

50 lines
1.3 KiB
YAML
Raw Normal View History

2021-01-29 22:19:54 +08:00
name: Update Plugin List
on:
schedule:
# At 00:00 on Sunday.
# https://crontab.guru
- cron: '0 0 * * 0'
2021-01-29 22:19:54 +08:00
workflow_dispatch:
# Set permissions at the job level.
permissions: {}
2021-01-29 22:19:54 +08:00
jobs:
update-plugin-list:
2022-02-11 20:03:22 +08:00
if: github.repository_owner == 'pytest-dev'
2021-01-29 22:19:54 +08:00
runs-on: ubuntu-latest
permissions:
contents: write
pull-requests: write
2021-01-29 22:19:54 +08:00
steps:
- name: Checkout
2022-10-24 20:58:03 +08:00
uses: actions/checkout@v3
with:
fetch-depth: 0
2021-01-29 22:19:54 +08:00
- name: Setup Python
2022-10-24 20:58:03 +08:00
uses: actions/setup-python@v4
2021-01-29 22:19:54 +08:00
with:
python-version: 3.8
2021-01-29 22:19:54 +08:00
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install packaging requests tabulate[widechars] tqdm
2021-01-29 22:19:54 +08:00
- name: Update Plugin List
run: python scripts/update-plugin-list.py
2021-01-29 22:19:54 +08:00
- name: Create Pull Request
uses: peter-evans/create-pull-request@5b4a9f6a9e2af26e5f02351490b90d01eb8ec1e5
2021-01-29 22:19:54 +08:00
with:
commit-message: '[automated] Update plugin list'
author: 'pytest bot <pytestbot@users.noreply.github.com>'
2021-01-29 22:19:54 +08:00
branch: update-plugin-list/patch
delete-branch: true
branch-suffix: short-commit-hash
title: '[automated] Update plugin list'
body: '[automated] Update plugin list'