Skip to content

Commit f0a339a

Browse files
committed
[skipci] TMP: add debug step
1 parent d69df0f commit f0a339a

File tree

1 file changed

+9
-3
lines changed

1 file changed

+9
-3
lines changed

.github/workflows/stackhpc-multinode.yml

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)