File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1717# /
1818
1919# Workflow name:
20- name : broken_markdown_links
20+ name : markdown_links
2121
2222# Workflow triggers:
2323on :
2424 schedule :
25- # Run the workflow once a month on the 1st day of every month.
25+ # Run the workflow once a month on the 1st day of every month:
2626 - cron : " 0 0 1 * *"
2727
2828 # Allow the workflow to be manually run:
3232jobs :
3333
3434 # Define a job for detecting broken links in Markdown files...
35- broken_markdown_links :
35+ check_links :
3636
3737 # Define a display name:
38- name : ' Detect broken links in Markdown files '
38+ name : ' Check links'
3939
4040 # Define the type of virtual host machine:
4141 runs-on : ubuntu-latest
@@ -56,14 +56,22 @@ jobs:
5656 # Specify whether to download Git-LFS files:
5757 lfs : false
5858 timeout-minutes : 10
59- # Run the command to check for broken links:
60- - id : broken-links
59+
60+ # Check for broken links:
61+ - name : ' Check links'
6162 uses : stdlib-js/broken-markdown-url-definitions-action@main
62- # Print out the results:
63- - run : |
64- echo ${{ steps.broken-links.outputs.links }}
65- echo Status: ${{ steps.broken-links.outputs.status }}
63+ id : results
64+ timeout-minutes : 120
65+
66+ # Log the results:
67+ - name : ' Log results'
68+ run : |
69+ echo ${{ steps.results.outputs.links }}
70+ echo Status: ${{ steps.results.outputs.status }}
71+ timeout-minutes : 2
72+
6673 # Fail the workflow if the status is not "success":
67- - if : ${{ steps.broken-links.outputs.status }} != 'success'
74+ - name : ' Check status'
75+ if : ${{ steps.results.outputs.status }} != 'success'
6876 run : |
6977 exit 1
You can’t perform that action at this time.
0 commit comments