File tree Expand file tree Collapse file tree 1 file changed +9
-3
lines changed
Expand file tree Collapse file tree 1 file changed +9
-3
lines changed Original file line number Diff line number Diff line change @@ -77,15 +77,21 @@ jobs:
7777 echo "Fetching ssh keys for ${{ github.actor }}"
7878 ssh_keys="$(gh api /users/${{ github.actor }}/keys --jq '[.[].key]' | jq --compact-output)"
7979 if [ -z "${ssh_keys}" ]; then
80- echo "E: Unable to get '${GITHUB_USER }' ssh keys (quotes added for clarity)"
80+ echo "E: Unable to get '${{ github.actor } }' ssh keys (quotes added for clarity)"
8181 exit 1
82+ fi
8283 elif [ -n "${{ inputs.ssh_key }}" ]; then
8384 # single string to JSON array
84- ssh_keys="$(jq --raw-input --slurp -- compact-output '.|[.]' <<<"${{ inputs.ssh_key }}")"
85+ ssh_keys="$(jq --raw-input --compact-output '.|[.]' <<<"${{ inputs.ssh_key }}")"
8586 else
8687 ssh_keys=''
8788 fi
88- echo "ssh_keys=${ssh_keys}" >> $GITHUB_OUTPUT;
89+ echo "ssh_keys=${ssh_keys}" >> "$GITHUB_OUTPUT"
90+ env :
91+ GH_TOKEN : ${{ github.token }}
92+ - name : Show ssh_keys
93+ run : |
94+ echo "${{ steps.compute_ssh_keys.outputs.ssh_keys }}"
8995 multinode :
9096 name : Multinode
9197 needs : github_user_ssh_keys
You can’t perform that action at this time.
0 commit comments