Skip to content

Commit 03a9d35

Browse files
🪲[Fix]: Fix linting issue for main (#24)
This pull request updates the `Action-Test` GitHub Actions workflow to improve its automation and linting capabilities. The most important changes are grouped below. **Workflow triggers:** * The workflow will now also run on pushes to the `main` branch, in addition to the existing triggers (`workflow_dispatch`, `pull_request`, and `schedule`). **Job steps and linting improvements:** * The step that used the `PSModule/GitHub-Script@v1` action to list files and commit documentation changes has been removed, simplifying the workflow. * The `Lint documentation` step now uses `super-linter/[email protected]` instead of a pinned commit from v8.2.0, and several new environment variables have been added to enable broader validation (`VALIDATE_NATURAL_LANGUAGE`, `VALIDATE_ALL_CODEBASE`, `USE_FIND_ALGORITHM`).
1 parent aa32aa1 commit 03a9d35

File tree

1 file changed

+7
-13
lines changed

1 file changed

+7
-13
lines changed

.github/workflows/Action-Test.yml

Lines changed: 7 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,9 @@ name: Action-Test
33
run-name: "Action-Test - [${{ github.event.pull_request.title }} #${{ github.event.pull_request.number }}] by @${{ github.actor }}"
44

55
on:
6+
push:
7+
branches:
8+
- main
69
workflow_dispatch:
710
pull_request:
811
schedule:
@@ -45,20 +48,11 @@ jobs:
4548
WorkingDirectory: tests/srcTestRepo
4649
ShowSummaryOnSuccess: true
4750

48-
- name: Get changes
49-
uses: PSModule/GitHub-Script@v1
50-
with:
51-
Script: |
52-
LogGroup "List files" {
53-
Get-ChildItem -Recurse -File | Select-Object -ExpandProperty FullName | Sort-Object
54-
}
55-
LogGroup "Commit changes" {
56-
git add tests/srcTestRepo/outputs/docs/
57-
git commit -m "Update documentation"
58-
}
59-
6051
- name: Lint documentation
61-
uses: super-linter/super-linter/slim@7bba2eeb89d01dc9bfd93c497477a57e72c83240 # v8.2.0
52+
uses: super-linter/super-linter/slim@v8.1.0
6253
env:
6354
GITHUB_TOKEN: ${{ github.token }}
6455
VALIDATE_MARKDOWN: true
56+
VALIDATE_NATURAL_LANGUAGE: true
57+
VALIDATE_ALL_CODEBASE: true
58+
USE_FIND_ALGORITHM: true

0 commit comments

Comments
 (0)