Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CON-2526 add new GA to check for broken links #2510

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
32 changes: 32 additions & 0 deletions .github/workflows/ga-misc-check-links.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: 🔗 GA-Misc - Check-Links

on:
pull_request:
paths-ignore:
- ".github/**"
branches: [master]
types: [labeled, opened, reopened, synchronize]

jobs:
GA-Misc-Check-Links:
name: 🔗 Run Check Links
runs-on: ubuntu-latest

if: contains(github.event.pull_request.labels.*.name, '🤸 skip-check-links') == false

steps:
- name: 🐧 Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0

- name: 🔍 Get all changed *.md file(s)
id: changed-md
run: |
echo "changed_files=$(git diff --name-only --merge-base origin/master | grep "\.md$" | xargs)" >> "$GITHUB_OUTPUT"

- name: 🔗 Run Check Links
if: steps.changed-md.outputs.changed_files != ''
uses: 01-edu/[email protected]
with:
filepath: ${{ steps.changed-md.outputs.changed_files }}
Loading