gpg/action.yml
CrazyMax ae17b9f8de
Add git-config-global input (#103)
Co-authored-by: CrazyMax <crazy-max@users.noreply.github.com>
2021-08-10 09:28:13 +02:00

58 lines
1.7 KiB
YAML

# https://help.github.com/en/articles/metadata-syntax-for-github-actions
name: 'Import GPG'
description: 'GitHub Action to easily import a GPG key'
author: 'crazy-max'
branding:
color: 'yellow'
icon: 'lock'
inputs:
gpg-private-key:
description: 'GPG private key exported as an ASCII armored version or its base64 encoding'
required: true
passphrase:
description: 'Passphrase of the GPG private key'
required: false
git-config-global:
description: 'Set Git config global'
default: 'false'
required: false
git-user-signingkey:
description: 'Set GPG signing keyID for this Git repository'
default: 'false'
required: false
git-commit-gpgsign:
description: 'Sign all commits automatically. git-user-signingkey needs to be enabled'
default: 'false'
required: false
git-tag-gpgsign:
description: 'Sign all tags automatically. git-user-signingkey needs to be enabled'
default: 'false'
required: false
git-push-gpgsign:
description: 'Sign all pushes automatically. git-user-signingkey needs to be enabled'
default: 'if-asked'
required: false
git-committer-name:
description: 'Commit author''s name'
required: false
git-committer-email:
description: 'Commit author''s email'
required: false
workdir:
description: 'Working directory (below repository root)'
default: '.'
required: false
outputs:
fingerprint:
description: 'Fingerprint of the GPG key (recommended as user ID)'
keyid:
description: 'Low 64 bits of the X.509 certificate SHA-1 fingerprint'
email:
description: 'Email address associated with the GPG key'
runs:
using: 'node12'
main: 'dist/index.js'
post: 'dist/index.js'