Skip to content

Commit 03a480c

Browse files
committed
Rename workflow
1 parent 5562faa commit 03a480c

1 file changed

Lines changed: 19 additions & 11 deletions

File tree

.github/workflows/broken_markdown_links.yml renamed to .github/workflows/markdown_links.yml

Lines changed: 19 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -17,12 +17,12 @@
1717
#/
1818

1919
# Workflow name:
20-
name: broken_markdown_links
20+
name: markdown_links
2121

2222
# Workflow triggers:
2323
on:
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:
@@ -32,10 +32,10 @@ on:
3232
jobs:
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

0 commit comments

Comments
 (0)