Skip to content

Commit 773590d

Browse files
🩹 [Patch]: Remove push event trigger from Action-Test workflow and update DEFAULT_BRANCH to use repository's default branch
1 parent 07f0367 commit 773590d

File tree

1 file changed

+14
-4
lines changed

1 file changed

+14
-4
lines changed

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

Lines changed: 14 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,6 @@ 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
118
schedule:
129
- cron: '0 0 * * *'
1310

@@ -48,11 +45,24 @@ jobs:
4845
WorkingDirectory: tests/srcTestRepo
4946
ShowSummaryOnSuccess: true
5047

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 status
58+
}
59+
5160
- name: Lint documentation
5261
uses: super-linter/super-linter/slim@7bba2eeb89d01dc9bfd93c497477a57e72c83240 # v8.2.0
5362
env:
5463
GITHUB_TOKEN: ${{ github.token }}
55-
DEFAULT_BRANCH: main
64+
DEFAULT_BRANCH: ${{ github.event.repository.default_branch }}
65+
FILTER_REGEX_INCLUDE: ^tests/srcTestRepo/outputs/docs/.*
5666
VALIDATE_MARKDOWN: true
5767
VALIDATE_NATURAL_LANGUAGE: true
5868
VALIDATE_ALL_CODEBASE: ${{ github.event_name == 'schedule' || github.event_name == 'workflow_dispatch' }}

0 commit comments

Comments
 (0)