Skip to content

Commit 18da487

Browse files
authored
circleci: fix release script (#410)
Signed-off-by: Nick Santos <nick.santos@docker.com>
1 parent 218197c commit 18da487

2 files changed

Lines changed: 8 additions & 2 deletions

File tree

.circleci/config.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,8 @@ jobs:
7272
ca-certificates \
7373
curl \
7474
gnupg \
75-
lsb-release
75+
lsb-release \
76+
jq
7677
mkdir -p /etc/apt/keyrings
7778
curl -fsSL https://download.docker.com/linux/debian/gpg | gpg --dearmor -o /etc/apt/keyrings/docker.gpg
7879
echo \
@@ -104,7 +105,8 @@ jobs:
104105
ca-certificates \
105106
curl \
106107
gnupg \
107-
lsb-release
108+
lsb-release \
109+
jq
108110
mkdir -p /etc/apt/keyrings
109111
curl -fsSL https://download.docker.com/linux/debian/gpg | gpg --dearmor -o /etc/apt/keyrings/docker.gpg
110112
echo \

hack/github-app-token.sh

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,4 +46,8 @@ token=$(curl -sSL --request POST \
4646
--header "Accept: application/vnd.github+json" \
4747
--header "Authorization: Bearer $JWT" \
4848
--header "X-GitHub-Api-Version: 2026-03-10" | jq -r '.token')
49+
if [[ "$token" == "" ]]; then
50+
echo "Failed to get token" >&2
51+
exit 1
52+
fi
4953
echo "$token"

0 commit comments

Comments
 (0)