-
Notifications
You must be signed in to change notification settings - Fork 0
48 lines (44 loc) · 1.34 KB
/
addrepo.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
43
44
45
46
47
48
# This workflow can be dispatched with an API call
# The call MUST provide:
# - a package name (example)
# - a package version (example-1.0.0-py3-none-any.whl)
# - a download link (http://repo.com/example-1.0.0-py3-none-any.whl)
name: Add Python Package
permissions:
actions: write
contents: write
deployments: write
on:
workflow_dispatch:
inputs:
name:
description: "Package Name (ie example)"
required: true
type: string
version:
description: "Package Version (ie example-1.0.0-py3-none-any.whl) "
required: true
type: string
link:
description: "Package Link (ie http://repo.com/example-1.0.0-py3-none-any.whl)"
required: true
type: string
jobs:
add_new_package:
runs-on: ubuntu-latest
concurrency: add_new_package
steps:
- uses: actions/checkout@v3
with:
token: ${{ secrets.PAT_TOKEN }}
- name: update local python package index
env:
NAME: ${{ inputs.name }}
VERSION: ${{ inputs.version }}
LINK: ${{ inputs.link }}
run: python update_packaging_folder.py $NAME $VERSION $LINK
- uses: EndBug/add-and-commit@v9
with:
message: Added a package to local index
committer_name: GitHub Actions
committer_email: [email protected]