Skip to content

chore(deps): update github-actions deps (#2119) #7956

chore(deps): update github-actions deps (#2119)

chore(deps): update github-actions deps (#2119) #7956

Workflow file for this run

name: markdown
on:
push:
branches:
- main
pull_request:
permissions:
contents: read
jobs:
changedfiles:
name: changed files
runs-on: ubuntu-latest
outputs:
md: ${{ steps.changes.outputs.md }}
steps:
- name: Checkout Repo
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
persist-credentials: false
fetch-depth: 0
- name: Get changed files
id: changes
env:
BASE_REF: ${{ github.event.pull_request.base.ref }}
PR_HEAD: ${{ github.event.pull_request.head.sha }}
run: |
echo "md=$(git diff --name-only --diff-filter=ACMRTUXB "origin/$BASE_REF" "$PR_HEAD" | grep .md$ | xargs)" >> $GITHUB_OUTPUT
lint:
name: lint markdown files
runs-on: ubuntu-latest
needs: changedfiles
if: ${{needs.changedfiles.outputs.md}}
steps:
- name: Checkout Repo
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
persist-credentials: false
- name: Run linter
uses: DavidAnson/markdownlint-cli2-action@21c1be1b93ad9ed58fa840aacc3f279cde2a72ff # v24.2.0
with:
config: .markdownlint-cli2.yaml
fix: false
globs: |
${{needs.changedfiles.outputs.md}}
check-links:
runs-on: ubuntu-latest
steps:
- name: Checkout Repo
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
persist-credentials: false
fetch-depth: 0
- uses: gaurav-nelson/github-action-markdown-link-check@3c3b66f1f7d0900e37b71eca45b63ea9eedfce31 # 1.0.17
with:
base-branch: 'main'
use-quiet-mode: 'yes'
use-verbose-mode: 'yes'
config-file: '.markdown-link.json'
check-modified-files-only: 'yes'
folder-path: ''