You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

33 lines
885 B

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/check-links@v0.2
with:
filepath: ${{ steps.changed-md.outputs.changed_files }}