-
Notifications
You must be signed in to change notification settings - Fork 5
39 lines (36 loc) · 1.02 KB
/
delete.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
name: delete
on:
workflow_dispatch:
inputs:
package_name:
description: Package name
required: true
type: string
jobs:
delete:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: [3.8]
steps:
- uses: actions/checkout@v2
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v1
with:
python-version: ${{ matrix.python-version }}
- name: Run Action
env:
PKG_ACTION: DELETE
PKG_NAME: ${{ inputs.package_name }}
run: |
pip install beautifulsoup4
python .github/actions.py
- name: Create Pull Request
uses: peter-evans/create-pull-request@v3
with:
commit-message: ':package: [:robot:] Delete package from PyPi index'
title: '[🤖] Delete `${{ inputs.package_name }}` from PyPi index'
body: Automatically generated PR, deleting `${{ inputs.package_name }}` from
PyPi index.
branch-suffix: random
delete-branch: true