Skip to content

Commit

Permalink
output fingerprint (hashicorp#2)
Browse files Browse the repository at this point in the history
  • Loading branch information
alvin-huang authored May 6, 2021
1 parent ffbabfe commit 5069471
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,3 +12,14 @@ runs:
rm temp.txt
shell: bash
name: import GPG key and prime passphrase
- id: gpg-fingerprint
run: |
fingerprint=$(gpg --with-colons --list-keys | awk -F: '/^pub/ { print $5 }')
echo "::set-output name=fingerprint::$fingerprint"
shell: bash
name: set gpg fingerprint output

outputs:
fingerprint:
description: "Fingerprint of the GPG key (recommended as user ID)"
value: ${{ steps.gpg-fingerprint.outputs.fingerprint }}

0 comments on commit 5069471

Please sign in to comment.