Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add a GitHub action for periodically running vale and storing the results #281

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
27 changes: 27 additions & 0 deletions .github/workflows/periodic-style-checks.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: Periodic Style Checks

on:
schedule:
- cron: "0 1 * * 4" # Runs at 01:00 AM on every Wednesday

jobs:
vale:
name: Style checker
runs-on: ubuntu-22.04
defaults:
run:
shell: bash
working-directory: .
steps:
- uses: actions/checkout@v4
- name: Run vale on RST and MD files
run: |
make vale TARGET="*.rst *.md" > vale_results.txt
sed -e 's/\x1b\[[0-9;]*m//g' vale_results.txt > vale_results_clean.txt

- name: Upload artifact
uses: actions/upload-artifact@v4
with:
name: vale-results
path: vale_results_clean.txt
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

suggest we put these in the /metrics directory the other testing PR adds

retention-days: 10