-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #500 from gematik/add-link-checker-and-fix-broken-…
…links Integrate link check action and check for broken links
- Loading branch information
Showing
4 changed files
with
47 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
name: Check Links | ||
# This workflow checks for broken links in the repository. | ||
|
||
on: | ||
pull_request: | ||
# Trigger the workflow on any pull request targeting any branch. | ||
branches: | ||
- '**' | ||
# Allows you to run this workflow manually from the Actions tab | ||
workflow_dispatch: | ||
|
||
jobs: | ||
link_checker: | ||
# Define a job named "link_checker" that runs the link-checking process. | ||
runs-on: ubuntu-latest | ||
# Specify the virtual machine environment to run the job (latest Ubuntu). | ||
|
||
steps: | ||
- name: Checkout repository | ||
# Step 1: Checkout the repository code into the workflow environment. | ||
uses: actions/checkout@v3 | ||
# Use the official GitHub checkout action (version 3). | ||
|
||
- name: Run Link Checker | ||
# Step 2: Run the Lychee link-checking tool. | ||
uses: lycheeverse/lychee-action@v2 | ||
# Use the Lychee GitHub Action (version 2) for link checking. | ||
|
||
with: | ||
fail: true | ||
# Configure the workflow to fail if broken links are found. | ||
# Run the link checker on the current directory and all its contents. | ||
# Exclude links matching the pattern for Jira links (e.g., HL7 Jira). | ||
# Exclude all links in the "ImplementationGuide/style" directory. | ||
# Exclude all links in the "Material" directory. | ||
args: > | ||
. | ||
--exclude-path ImplementationGuide/style | ||
--exclude-path Material | ||
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
^https?://jira\.hl7\.org | ||
^https?://test\.krankenhaus\.de | ||
^http://hl7\.org/fhir/StructureDefinition/condition-related | ||
^http://hl7\.org/fhir/5\.0/StructureDefinition/extension-Encounter\.plannedStartDate | ||
^http://hl7\.org/fhir/5\.0/StructureDefinition/extension-Encounter\.plannedEndDate |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters