Skip to content

Commit

Permalink
fix: check for any vale v2 version
Browse files Browse the repository at this point in the history
  • Loading branch information
jorgepiloto committed Feb 23, 2024
1 parent 0de3ed2 commit 6629b48
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci_cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ jobs:
needs: commit-and-branch-style
steps:
- name: "Run documentation style checks"
uses: ansys/actions/doc-style@feat/vale-deprecation
uses: ansys/actions/doc-style@main
with:
token: ${{ secrets.GITHUB_TOKEN }}

Expand Down
7 changes: 4 additions & 3 deletions doc-style/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,10 +51,10 @@ runs:
uses: actions/checkout@v4
if: inputs.checkout == 'true'

# TODO: remove deprecation in ansys/actions@v6
# TODO: remove this deprecation in ansys/actions@v6

- name: "Build deprecation warning"
if: inputs.vale-version == '2.29.6'
if: startswith(inputs.vale-version, '2.')
shell: bash
run: |
deprecation_text="
Expand All @@ -65,7 +65,7 @@ runs:
echo "DEPRECATION_TEXT=$(echo $deprecation_text)" >> $GITHUB_ENV
- uses: ansys/actions/_logging@main
if: inputs.vale-version == '2.29.6'
if: startswith(inputs.vale-version, '2.')
with:
level: "WARNING"
message: >
Expand All @@ -75,6 +75,7 @@ runs:
- name: "Raise deprecation warning outside of the CI/CD logs"
shell: bash
if: startswith(inputs.vale-version, '2.')
run: |
echo "::warning ::${DEPRECATION_TEXT}"
Expand Down

0 comments on commit 6629b48

Please sign in to comment.