Skip to content

Commit 507e114

Browse files
authored
Fix GH API path to include GH user
The API call seems to miss the GH user and returns always `null` for me when running in terminal. Note: I have no idea what that `:-` does in line 34 + 35, can you enlighten me? For the API call on GH it should use the original GH user + repo name otherwise the to lowercased values (for DockerHub) will fail in this case? Maybe this fixes meeDamian#2 also. I had `description: true` and actually a description on my repo but it failed.
1 parent 06fa190 commit 507e114

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

entrypoint.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ if [ -n "${INPUT_DESCRIPTION}" ]; then
6363
# If it was set to `true`, then fetch from Github.
6464
# No quoting necessary, as it either returns a valid JSON string, or null
6565
if [ "${INPUT_DESCRIPTION}" = "true" ]; then
66-
DESC=$(curl -s "https://api.github.com/repos/${SLUG}" | jq '.description')
66+
DESC=$(curl -s "https://api.github.com/repos/${GITHUB_ACTOR}/${GITHUB_REPOSITORY}" | jq '.description')
6767
fi
6868
fi
6969

0 commit comments

Comments
 (0)