Skip to content

Commit

Permalink
add in codespell test
Browse files Browse the repository at this point in the history
  • Loading branch information
kodster28 committed Dec 12, 2023
1 parent 27c4d97 commit 9939a6b
Show file tree
Hide file tree
Showing 2 changed files with 43 additions and 2 deletions.
43 changes: 42 additions & 1 deletion .github/workflows/automated-review.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,4 +49,45 @@ jobs:
-H "Accept: application/vnd.github.v3+json" \
-X POST -d "$comment_body" \
"https://api.github.com/repos/${{ github.repository }}/issues/${{ github.event.pull_request.number }}/comments"
fi
fi
- name: Get Changed Files from Pull Request
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
# get file names and separate them with space ' '
files=$(gh pr diff ${{ github.event.pull_request.number }} --name-only | grep -E "\.md$" | xargs -I {} sh -c 'echo "\"./{}\""' | tr '\n' ' ')
echo "CHANGED_FILES=$files" >> "$GITHUB_ENV"
- name: Output Changed Files
run: echo ${{ env.CHANGED_FILES }}

- name: Set up Python environment
uses: actions/setup-python@v3
with:
python-version: 3.x
if: ${{ !cancelled() && env.CHANGED_FILES != '' }}

- name: Create virtual environment
run: python -m venv venv
if: ${{ !cancelled() && env.CHANGED_FILES != '' }}

- name: Activate virtual environment
run: source venv/bin/activate
if: ${{ !cancelled() && env.CHANGED_FILES != '' }}

- name: Install codespell
run: pip install codespell
if: ${{ !cancelled() && env.CHANGED_FILES != '' }}

- name: Install case-police
run: npm install -g case-police
if: ${{ !cancelled() && env.CHANGED_FILES != '' }}

- name: Install alex
run: npm install -g alex
if: ${{ !cancelled() && env.CHANGED_FILES != '' }}

- name: Case Police
run: case-police ${{ env.CHANGED_FILES }} --disable DoS
if: ${{ !cancelled() && env.CHANGED_FILES != '' }}
2 changes: 1 addition & 1 deletion content/1.1.1.1/_index.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ weight: 1
# Cloudflare 1.1.1.1

{{<description>}}
Speed up your online experience with Cloudflare's public DNS resolver.
Speed up your online experience with CloudFlare's public DNS resolver.
{{</description>}}

{{<plan type="all">}}
Expand Down

0 comments on commit 9939a6b

Please sign in to comment.