2
0
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:
Matthias Mair
2023-01-29 20:44:57 +01:00
committed by GitHub
parent bc3ca14bb6
commit 007f04f9e9
2 changed files with 108 additions and 0 deletions

41
.github/workflows/collect_plugin.yml vendored Normal file
View 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