mirror of
https://github.com/inventree/inventree-website.git
synced 2025-06-16 03:55:25 +00:00
Add plugin workflow (#114)
* Add cups plugin * Add workflow to add plugins
This commit is contained in:
41
.github/workflows/collect_plugin.yml
vendored
Normal file
41
.github/workflows/collect_plugin.yml
vendored
Normal file
@ -0,0 +1,41 @@
|
||||
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: {}
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
with:
|
||||
token: ${{ secrets.BOT_PAT }}
|
||||
- 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:
|
||||
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
|
Reference in New Issue
Block a user