Skip to content

CI: Avoid path filtering in "required" workflows #1

CI: Avoid path filtering in "required" workflows

CI: Avoid path filtering in "required" workflows #1

name: Check _redirects.txt file
on:
pull_request:
branches:
- main
paths:
- files/en-us/_redirects.txt
- .github/workflows/pr-check_redirects_file.yml
jobs:
check-redirects:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Setup Node.js environment
uses: actions/setup-node@v3
with:
node-version-file: ".nvmrc"
cache: yarn
- name: Install all yarn packages
run: yarn --frozen-lockfile
env:
# https://github.com/microsoft/vscode-ripgrep#github-api-limit-note
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Check 'files/en-us/_redirects.txt' file
run: yarn content validate-redirects en-us --strict