From 265cf856439d7af2c0486de6870b1917f79e33e9 Mon Sep 17 00:00:00 2001 From: Patrick Schratz Date: Sun, 8 Dec 2024 15:16:09 +0100 Subject: [PATCH] link-checker: various fixes (#4534) --- .woodpecker/links.yaml | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/.woodpecker/links.yaml b/.woodpecker/links.yaml index 1d55b0f60..f0c3fdcd3 100644 --- a/.woodpecker/links.yaml +++ b/.woodpecker/links.yaml @@ -20,13 +20,12 @@ steps: GITHUB_TOKEN: from_secret: github_token commands: - - ISSUE_NUMBER=4514 - - REPO_OWNER=woodpecker-ci - - REPO_NAME=woodpecker - - DESCRIPTION=$(cat links.md) + - apk add -q --no-cache jq + - export ISSUE_NUMBER=4514 + - export DESCRIPTION=$(cat links.md) - | curl -X PATCH \ - -H "Authorization: token ${GITHUB_TOKEN}" \ + -H "Authorization: token $GITHUB_TOKEN" \ -H "Accept: application/vnd.github.v3+json" \ - https://api.github.com/repos/${REPO_OWNER}/${REPO_NAME}/issues/${ISSUE_NUMBER} \ + https://api.github.com/repos/${CI_REPO}/issues/${ISSUE_NUMBER} \ -d "$(jq -n --arg body "$DESCRIPTION" '{body: $body}')"