woodpecker/.woodpecker/links.yaml
renovate[bot] d57dcf26de
chore(deps): update docker.io/curlimages/curl docker tag to v8.11.0 (#4530)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-12-08 13:22:46 +01:00

30 lines
969 B
YAML

when:
- event: cron
cron: links
steps:
- name: links
image: docker.io/lycheeverse/lychee:0.15.1
depends_on: []
commands:
- lychee pipeline/frontend/yaml/linter/schema/schema.json > links.md
- lychee --exclude localhost docs/docs/ >> links.md
- lychee --exclude localhost docs/src/pages/ >> links.md
- echo -e "\nLast checked:$(date)" >> links.md
- name: Update issue
image: docker.io/curlimages/curl:8.11.0
environment:
GITHUB_TOKEN:
from_secret: github_token
commands:
- ISSUE_NUMBER=4514
- REPO_OWNER=woodpecker-ci
- REPO_NAME=woodpecker
- DESCRIPTION=$(cat links.md)
- |
curl -X PATCH \
-H "Authorization: token ${GITHUB_TOKEN}" \
-H "Accept: application/vnd.github.v3+json" \
https://api.github.com/repos/${REPO_OWNER}/${REPO_NAME}/issues/${ISSUE_NUMBER} \
-d "$(jq -n --arg body "$DESCRIPTION" '{body: $body}')"