diff --git a/.github/workflows/vale.yml b/.github/workflows/vale.yml
index fc11f81..c5e0a70 100644
--- a/.github/workflows/vale.yml
+++ b/.github/workflows/vale.yml
@@ -13,6 +13,7 @@ jobs:
steps:
- name: clone repo
uses: actions/checkout@v4
+
- name: clone vale-styles repo
uses: actions/checkout@v4
with:
@@ -21,10 +22,37 @@ jobs:
ssh-key: ${{ secrets.VALE_STYLES_ACCESS_KEY }}
- name: copy vale rules to the root repo
run: shopt -s dotglob && cp -r ./vale-styles/vale/* .
+
+ - name: Prepare existing README files list
+ id: prepare
+ shell: bash
+ run: |
+ candidates=(README.md readme.md Readme.md)
+ files_json_parts=()
+ for f in "${candidates[@]}"; do
+ if [[ -f "$f" ]]; then
+ files_json_parts+=("\"$f\"")
+ fi
+ done
+ if [[ ${#files_json_parts[@]} -eq 0 ]]; then
+ echo "No README variants found. Skipping Vale."
+ echo "skip=true" >> "$GITHUB_OUTPUT"
+ else
+ files_json="[$(IFS=,; echo "${files_json_parts[*]}")]"
+ echo "Will lint: $files_json"
+ echo "valefiles=$files_json" >> "$GITHUB_OUTPUT"
+ echo "skip=false" >> "$GITHUB_OUTPUT"
+ fi
+
- name: vale linter check
+ if: steps.prepare.outputs.skip == 'false'
uses: DevExpress/vale-action@reviewdog
with:
- files: '["README.md", "readme.md", "Readme.md"]'
+ files: ${{ steps.prepare.outputs.valefiles }}
fail_on_error: true
filter_mode: nofilter
reporter: github-check
+
+ - name: Note skipped (no README present)
+ if: steps.prepare.outputs.skip == 'true'
+ run: echo "Vale step skipped because no README variant exists."
diff --git a/Readme.md b/Readme.md
index f7c9ab8..9865dc8 100644
--- a/Readme.md
+++ b/Readme.md
@@ -1,14 +1,16 @@
-
-[](https://supportcenter.devexpress.com/ticket/details/T1245197)
-[](https://docs.devexpress.com/GeneralInformation/403183)
-[](#does-this-example-address-your-development-requirementsobjectives)
-
-# approvals-test
-test repo for pr approvals test
-
+
+[](https://supportcenter.devexpress.com/ticket/details/T1245197)
+[](https://docs.devexpress.com/GeneralInformation/403183)
+[](#does-this-example-address-your-development-requirementsobjectives)
+
+# approvals-test
+test repo for pr approvals test (vale test)
+
## Does this example address your development requirements/objectives?
[
](https://www.devexpress.com/support/examples/survey.xml?utm_source=github&utm_campaign=approvals-test&~~~was_helpful=yes) [
](https://www.devexpress.com/support/examples/survey.xml?utm_source=github&utm_campaign=approvals-test&~~~was_helpful=no)
-(you will be redirected to DevExpress.com to submit your response)
-
+(you will be redirected to DevExpress.com to submit your response)
+
+
+Test vale validation