Skip to content

Commit 51b6643

Browse files
🩹 [Patch]: Refactor Get changes step to include logging for file listing and commit changes
1 parent 16b246f commit 51b6643

File tree

1 file changed

+7
-9
lines changed

1 file changed

+7
-9
lines changed

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

Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -44,22 +44,20 @@ jobs:
4444
Name: PSModuleTest
4545
WorkingDirectory: tests/srcTestRepo
4646

47-
- name: List files
48-
shell: pwsh
49-
run: |
50-
Get-ChildItem -Recurse -File | Select-Object -ExpandProperty FullName | Sort-Object
51-
5247
- name: Get changes
5348
uses: PSModule/GitHub-Script@v1
5449
with:
5550
Script: |
56-
git add tests/srcTestRepo/outputs/docs/
57-
git commit -m "Update documentation"
51+
LogGroup "List files" {
52+
Get-ChildItem -Recurse -File | Select-Object -ExpandProperty FullName | Sort-Object
53+
}
54+
LogGroup "Commit changes" {
55+
git add tests/srcTestRepo/outputs/docs/
56+
git commit -m "Update documentation"
57+
}
5858
5959
- name: Lint documentation
6060
uses: super-linter/super-linter/slim@7bba2eeb89d01dc9bfd93c497477a57e72c83240 # v8.2.0
6161
env:
6262
GITHUB_TOKEN: ${{ github.token }}
63-
# RUN_LOCAL: true
64-
# DEFAULT_BRANCH: main
6563
VALIDATE_MARKDOWN: true

0 commit comments

Comments
 (0)