generated from astariul/github-hosted-pypi
-
Notifications
You must be signed in to change notification settings - Fork 0
50 lines (47 loc) · 1.44 KB
/
update.yml
File metadata and controls
50 lines (47 loc) · 1.44 KB
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
43
44
45
46
47
48
49
50
name: update
on:
workflow_dispatch:
inputs:
package_name:
description: Package name
required: true
type: string
version:
description: New version of the package
required: true
type: string
link:
description: 'Link used for `pip`. For example, for a github-hosted package
refered by the tag `v3.0.2`, it would be : git+https://github.com/huggingface/transformers@v3.0.2'
required: true
type: string
jobs:
update:
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: UPDATE
PKG_NAME: ${{ inputs.package_name }}
PKG_VERSION: ${{ inputs.version }}
PKG_LINK: ${{ inputs.link }}
run: |
pip install beautifulsoup4
python .github/actions.py
- name: Create Pull Request
uses: peter-evans/create-pull-request@v3
with:
commit-message: ':package: [:robot:] Update package in PyPi index'
title: '[🤖] Update `${{ inputs.package_name }}` in PyPi index'
body: Automatically generated PR, updating `${{ inputs.package_name }}` in PyPi
index.
branch-suffix: random
delete-branch: true