mirror of
https://github.com/xlionjuan/apt-repo-action.git
synced 2026-11-16 22:37:53 +00:00
89 lines
2.5 KiB
YAML
89 lines
2.5 KiB
YAML
---
|
|
# 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 }}
|