forked from morph027/apt-repo-action
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathaction.yml
89 lines (89 loc) · 2.54 KB
/
action.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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
---
# yamllint disable rule:line-length
name: Create APT repository
description: Create APT repository using reprepro
inputs:
repo-name:
description: >-
Repository name.
required: true
scan-dir:
description: >-
Scan this directory for packages to include in the repo.
If unset, defaults to ${PWD}.
origin:
description: >-
Origin. If unset, defaults to repo-name.
suite:
description: >-
Suite. If unset, defaults to repo-name.
label:
description: >-
Label. If unset, defaults to repo-name.
codename:
description: >-
Codename. If unset, defaults to repo-name.
components:
description: >-
Components. If unset, defaults to main.
default: main
architectures:
description: >-
Architectures. If unset, defaults to amd64.
section:
description: >-
Section (Optional)
priority:
description: >-
Priority (Optional)
limit:
description: >-
How many package versions to keep.
If unset, defaults to 0 (unlimited).
signing-key:
description: >-
Private gpg key for signing.
Please use Secrets!
required: true
maintainer:
description: >-
Package maintainer for keyring package.
If unset, defaults to apt-repo-action@${GITHUB_REPOSITORY_OWNER}
homepage:
description: >-
Homepage for keyring package.
If unset, defaults to ${GITHUB_SERVER_URL}/${GITHUB_REPOSITORY}
override:
description: >-
Optional override file (see [man page](https://manpages.debian.org/unstable/reprepro/reprepro.1.en.html#OVERRIDE_FILES))
outputs:
dir:
description: >-
Directory which contains the APT repo.
value: ${{ steps.create-apt-repo.outputs.dir }}
keyring:
description: >-
Keyring name.
value: ${{ steps.create-apt-repo.outputs.keyring }}
runs:
using: composite
steps:
- name: Create APT repo
id: create-apt-repo
run: ${GITHUB_ACTION_PATH}/repo.sh
shell: bash
env:
REPO_NAME: ${{ inputs.repo-name }}
SCAN_DIR: ${{ inputs.scan-dir }}
KEYRING_NAME: ${{ inputs.keyring-name }}
ORIGIN: ${{ inputs.origin }}
SUITE: ${{ inputs.suite }}
LABEL: ${{ inputs.label }}
CODENAME: ${{ inputs.codename }}
COMPONENTS: ${{ inputs.components }}
ARCHITECTURES: ${{ inputs.architectures }}
LIMIT: ${{ inputs.limit }}
SIGNING_KEY: ${{ inputs.signing-key }}
MAINTAINER: ${{ inputs.maintainer }}
HOMEPAGE: ${{ inputs.homepage }}
OVERRIDE: ${{ inputs.override }}