Skip to content

Commit 07f0367

Browse files
🩹 [Patch]: Update Action-Test workflow to include push event trigger and remove redundant get changes step
1 parent 679d74d commit 07f0367

File tree

1 file changed

+4
-12
lines changed

1 file changed

+4
-12
lines changed

‎.github/workflows/Action-Test.yml‎

Lines changed: 4 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,9 @@ run-name: "Action-Test - [${{ github.event.pull_request.title }} #${{ github.eve
55
on:
66
workflow_dispatch:
77
pull_request:
8+
push:
9+
branches:
10+
- main
811
schedule:
912
- cron: '0 0 * * *'
1013

@@ -45,22 +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
6152
uses: super-linter/super-linter/slim@7bba2eeb89d01dc9bfd93c497477a57e72c83240 # v8.2.0
6253
env:
6354
GITHUB_TOKEN: ${{ github.token }}
55+
DEFAULT_BRANCH: main
6456
VALIDATE_MARKDOWN: true
6557
VALIDATE_NATURAL_LANGUAGE: true
6658
VALIDATE_ALL_CODEBASE: ${{ github.event_name == 'schedule' || github.event_name == 'workflow_dispatch' }}

0 commit comments

Comments
 (0)