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

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

58 lines
1.6 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
uses: actions/checkout@v4
with:
fetch-depth: 0
2021-01-29 22:19:54 +08:00
- name: Setup Python
uses: actions/setup-python@v5
2021-01-29 22:19:54 +08:00
with:
python-version: "3.11"
cache: pip
- name: requests-cache
uses: actions/cache@v4
with:
path: ~/.cache/pytest-plugin-list/
key: plugins-http-cache-${{ github.run_id }} # Can use time based key as well
restore-keys: plugins-http-cache-
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 requests-cache platformdirs
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@6d6857d36972b65feb161a90e484f2984215f83e
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'