@@ -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
@@ -100,7 +106,7 @@ jobs:
100106 break_on : ${{ inputs.break_on }}
101107 # Workaround loss of number type using fromJSON: https://github.com/orgs/community/discussions/67182
102108 break_duration : ${{ fromJSON(inputs.break_duration) }}
103- ssh_keys : ${{ github_user_ssh_keys.outputs.ssh_keys }}
109+ ssh_keys : ${{ needs. github_user_ssh_keys.outputs.ssh_keys }}
104110 stackhpc_kayobe_config_version : ${{ github.ref_name }}
105111 # NOTE(upgrade): Reference the PREVIOUS and CURRENT releases here.
106112 stackhpc_kayobe_config_previous_version : ${{ inputs.upgrade == 'major' && 'stackhpc/2024.1' || 'stackhpc/2025.1' }}
0 commit comments