mirror of
https://github.com/woodpecker-ci/woodpecker.git
synced 2024-12-16 05:26:31 +00:00
link-checker: various fixes (#4534)
This commit is contained in:
parent
fe36788fe8
commit
265cf85643
1 changed files with 5 additions and 6 deletions
|
@ -20,13 +20,12 @@ steps:
|
||||||
GITHUB_TOKEN:
|
GITHUB_TOKEN:
|
||||||
from_secret: github_token
|
from_secret: github_token
|
||||||
commands:
|
commands:
|
||||||
- ISSUE_NUMBER=4514
|
- apk add -q --no-cache jq
|
||||||
- REPO_OWNER=woodpecker-ci
|
- export ISSUE_NUMBER=4514
|
||||||
- REPO_NAME=woodpecker
|
- export DESCRIPTION=$(cat links.md)
|
||||||
- DESCRIPTION=$(cat links.md)
|
|
||||||
- |
|
- |
|
||||||
curl -X PATCH \
|
curl -X PATCH \
|
||||||
-H "Authorization: token ${GITHUB_TOKEN}" \
|
-H "Authorization: token $GITHUB_TOKEN" \
|
||||||
-H "Accept: application/vnd.github.v3+json" \
|
-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}')"
|
-d "$(jq -n --arg body "$DESCRIPTION" '{body: $body}')"
|
||||||
|
|
Loading…
Reference in a new issue