Skip to content

Commit 958bfb0

Browse files
committed
ci: quote curl auth header in detect step so trixie is not skipped
1 parent ea3bc5a commit 958bfb0

1 file changed

Lines changed: 8 additions & 3 deletions

File tree

.github/workflows/kernel-beta-update.yml

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -71,9 +71,14 @@ jobs:
7171
exit 0
7272
fi
7373
api="https://api.github.com/repos/$REPO/contents/extra/git_hash"
74-
gh="-H Authorization:Bearer $GH_TOKEN -H Accept:application/vnd.github.raw"
75-
before=$(curl -fsSL $gh "$api?ref=$BEFORE" | tr -d '[:space:]')
76-
after=$(curl -fsSL $gh "$api?ref=$AFTER" | tr -d '[:space:]')
74+
fetch() {
75+
curl -fsSL \
76+
-H "Authorization: Bearer $GH_TOKEN" \
77+
-H "Accept: application/vnd.github.raw" \
78+
"$api?ref=$1" | tr -d '[:space:]'
79+
}
80+
before=$(fetch "$BEFORE")
81+
after=$(fetch "$AFTER")
7782
echo "before='$before' after='$after'"
7883
if [ -z "$before" ] || [ -z "$after" ]; then
7984
echo "could not determine extra/git_hash; skipping (re-run manually if needed)"

0 commit comments

Comments
 (0)