Skip to content

Commit c87da6f

Browse files
🩹 [Patch]: Refactor Action-Test workflow to include Git configuration logging for local, global, and system scopes
1 parent 0727530 commit c87da6f

File tree

1 file changed

+36
-8
lines changed

1 file changed

+36
-8
lines changed

ā€Ž.github/workflows/Action-Test.ymlā€Ž

Lines changed: 36 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -17,12 +17,40 @@ permissions:
1717
pull-requests: read
1818

1919
jobs:
20+
# ActionTest:
21+
# uses: ./.github/workflows/TestWorkflow.yml
22+
# secrets: inherit
23+
# strategy:
24+
# fail-fast: false
25+
# matrix:
26+
# os: [ubuntu-latest, macos-latest, windows-latest]
27+
# with:
28+
# runs-on: ${{ matrix.os }}
29+
2030
ActionTest:
21-
uses: ./.github/workflows/TestWorkflow.yml
22-
secrets: inherit
23-
strategy:
24-
fail-fast: false
25-
matrix:
26-
os: [ubuntu-latest, macos-latest, windows-latest]
27-
with:
28-
runs-on: ${{ matrix.os }}
31+
runs-on: ubuntu-latest
32+
steps:
33+
- name: Checkout repo
34+
uses: actions/checkout@v4
35+
36+
- name: Action-Test
37+
uses: ./
38+
with:
39+
Script: |
40+
LogGroup 'GitConfig - Local' {
41+
$configList = git config --local --list 2>&1
42+
$configList
43+
$LASTEXITCODE
44+
}
45+
46+
LogGroup 'GitConfig - Global' {
47+
$configList = git config --global --list 2>&1
48+
$configList
49+
$LASTEXITCODE
50+
}
51+
52+
LogGroup 'GitConfig - System' {
53+
$configList = git config --system --list 2>&1
54+
$configList
55+
$LASTEXITCODE
56+
}

0 commit comments

Comments
Ā (0)