-
Notifications
You must be signed in to change notification settings - Fork 10
42 lines (39 loc) · 1.24 KB
/
collect_plugin.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
name: Collect plugin by PyPI listing
on:
workflow_dispatch:
inputs:
project:
description: The name of the project on PyPi
required: true
author:
description: Enter the name of the author if you know it
jobs:
build:
runs-on: ubuntu-latest
permissions:
contents: write
pull-requests: write
steps:
- uses: actions/checkout@v2
- name: Get Plugin file
run: python .github/collect_plugin.py
env:
PROJECT: ${{ github.event.inputs.project }}
AUTHOR: ${{ github.event.inputs.author }}
- name: Create Pull Request
uses: peter-evans/create-pull-request@v4
with:
token: ${{ secrets.GITHUB_TOKEN }}
commit-message: "[REPO] Add plugin ${{ github.event.inputs.project }}"
branch: "plugin/${{ github.event.inputs.project }}"
title: "[REPO] Add plugin ${{ github.event.inputs.project }}"
body: |
Automated PR to add the plugin ${{ github.event.inputs.project }}.
You need to check this manually!
labels: |
plugin
assignees: |
matmair
${{ github.event.inputs.author }}
reviewers: |
matmair