Skip to content

Commit

Permalink
ci(pr-test): remove unnecessary redirect check (#22830)
Browse files Browse the repository at this point in the history
  • Loading branch information
yin1999 authored Dec 11, 2022
1 parent 0f2d4cf commit 909a4a2
Showing 1 changed file with 0 additions and 10 deletions.
10 changes: 0 additions & 10 deletions .github/workflows/pr-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,10 +49,6 @@ jobs:
# filter out files that are not attachments
GIT_DIFF_FILES=$(echo "${DIFF_DOCUMENTS}" | egrep -i "^files/.*\.(png|jpeg|jpg|gif|svg|webp)$" | xargs)
echo "GIT_DIFF_FILES=${GIT_DIFF_FILES}" >> $GITHUB_ENV
# filter out files that are not _redirects.txt
GIT_DIFF_REDIRECTS=$(echo "${DIFF_DOCUMENTS}" | egrep -i "^files/.*/_redirects\.txt$" | xargs)
echo "GIT_DIFF_REDIRECTS=${GIT_DIFF_REDIRECTS}" >> $GITHUB_ENV
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

Expand Down Expand Up @@ -144,9 +140,3 @@ jobs:
export CONTENT_ROOT=$(pwd)/files
yarn filecheck ${{ env.GIT_DIFF_FILES }}
- name: Validate redirects
if: ${{ env.GIT_DIFF_REDIRECTS }}
run: |
echo ${{ env.GIT_DIFF_REDIRECTS }}
yarn content validate-redirects

0 comments on commit 909a4a2

Please sign in to comment.