"jshERP-web/vscode:/vscode.git/clone" did not exist on "81b0be251fb6ca7867e931adc41928eb2bb2708c"
Unverified Commit 46685f9a authored by Sitram's avatar Sitram Committed by GitHub
Browse files

Validate all links every day at 00:00 (#1414)


Co-authored-by: default avatarYann Bertrand <5855339+yannbertrand@users.noreply.github.com>
parent 7de53824
name: "Validate links"
on:
schedule:
- cron: '0 0 * * *'
env:
FORMAT_FILE: README.md
jobs:
test:
name: 'Validate README.md'
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Validate all links from README.md
run: build/validate_links.sh ${FORMAT_FILE}
......@@ -33,9 +33,10 @@ def validate_links(links):
errors.append("TMO: " + link)
except socket.error as socketerror:
errors.append("SOC: {} : {}".format(socketerror, link))
except Exception as e:
errors.append("ERR: {} : {}".format(e, link))
return errors
if __name__ == "__main__":
num_args = len(sys.argv)
if num_args < 2:
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment