1
0
mirror of https://github.com/woodpecker-ci/woodpecker.git synced 2024-12-24 10:07:21 +02:00

link-checker: various fixes (#4534)

This commit is contained in:
Patrick Schratz 2024-12-08 15:16:09 +01:00 committed by GitHub
parent fe36788fe8
commit 265cf85643
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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}')"