mirror of
https://github.com/crazy-max/ghaction-import-gpg.git
synced 2024-11-26 15:01:00 -05:00
46 lines
1.1 KiB
YAML
46 lines
1.1 KiB
YAML
name: ci
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- 'master'
|
|
paths-ignore:
|
|
- '**.md'
|
|
pull_request:
|
|
paths-ignore:
|
|
- '**.md'
|
|
|
|
jobs:
|
|
ci:
|
|
runs-on: ${{ matrix.os }}
|
|
strategy:
|
|
fail-fast: false
|
|
matrix:
|
|
os:
|
|
- ubuntu-latest
|
|
- macOS-latest
|
|
- windows-latest
|
|
steps:
|
|
-
|
|
name: Checkout
|
|
uses: actions/checkout@v2
|
|
-
|
|
name: Import GPG private key
|
|
id: import_gpg
|
|
uses: ./
|
|
with:
|
|
git_user_signingkey: true
|
|
git_commit_gpgsign: true
|
|
git_tag_gpgsign: true
|
|
git_push_gpgsign: true
|
|
git_committer_name: Joe Tester
|
|
git_committer_email: joe@foo.bar
|
|
env:
|
|
GPG_PRIVATE_KEY: ${{ secrets.GPG_PRIVATE_KEY_TEST }}
|
|
PASSPHRASE: ${{ secrets.PASSPHRASE_TEST }}
|
|
-
|
|
name: GPG user IDs
|
|
run: |
|
|
echo "fingerprint: ${{ steps.import_gpg.outputs.fingerprint }}"
|
|
echo "keyid: ${{ steps.import_gpg.outputs.keyid }}"
|
|
echo "email: ${{ steps.import_gpg.outputs.email }}"
|