mirror of
https://github.com/curl/curl.git
synced 2026-01-18 17:21:26 +01:00
GHA: make links get checked daily
Assisted-by: Viktor Szakats Closes #19898
This commit is contained in:
11
.github/workflows/checkdocs.yml
vendored
11
.github/workflows/checkdocs.yml
vendored
@@ -89,17 +89,6 @@ jobs:
|
||||
# - name: 'check special prose'
|
||||
# run: proselint docs/internals/CHECKSRC.md docs/libcurl/curl_mprintf.md docs/libcurl/opts/CURLOPT_INTERFACE.md docs/cmdline-opts/interface.md
|
||||
|
||||
linkcheck:
|
||||
name: 'linkcheck'
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@1af3b93b6815bc44a9784bd300feb67ff0d1eeb3 # v6.0.0
|
||||
with:
|
||||
persist-credentials: false
|
||||
|
||||
- name: 'mdlinkcheck'
|
||||
run: ./scripts/mdlinkcheck
|
||||
|
||||
pyspelling:
|
||||
name: 'pyspelling'
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
28
.github/workflows/checkurls.yml
vendored
Normal file
28
.github/workflows/checkurls.yml
vendored
Normal file
@@ -0,0 +1,28 @@
|
||||
# Copyright (C) Daniel Stenberg, <daniel@haxx.se>, et al.
|
||||
#
|
||||
# SPDX-License-Identifier: curl
|
||||
|
||||
name: 'URLs'
|
||||
|
||||
'on':
|
||||
schedule:
|
||||
- cron: '10 5 * * *'
|
||||
|
||||
concurrency:
|
||||
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.sha }}
|
||||
cancel-in-progress: true
|
||||
|
||||
permissions: {}
|
||||
|
||||
jobs:
|
||||
linkcheck:
|
||||
if: ${{ github.repository_owner == 'curl' }}
|
||||
name: 'linkcheck'
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@1af3b93b6815bc44a9784bd300feb67ff0d1eeb3 # v6.0.0
|
||||
with:
|
||||
persist-credentials: false
|
||||
|
||||
- name: 'mdlinkcheck'
|
||||
run: ./scripts/mdlinkcheck
|
||||
@@ -86,8 +86,8 @@ my %whitelist = (
|
||||
my %url;
|
||||
my %flink;
|
||||
|
||||
# list all .md files in the repo
|
||||
my @files=`git ls-files '**.md'`;
|
||||
# list all files to scan for links
|
||||
my @files=`git ls-files docs src lib scripts`;
|
||||
|
||||
sub storelink {
|
||||
my ($f, $line, $link) = @_;
|
||||
|
||||
Reference in New Issue
Block a user