Skip to content

Commit 4b04662

Browse files
Revert
1 parent b8b53dd commit 4b04662

File tree

2 files changed

+8
-55
lines changed

2 files changed

+8
-55
lines changed

.github/workflows/Action-Test.yml

Lines changed: 8 additions & 43 deletions
Original file line numberDiff line numberDiff line change
@@ -17,47 +17,12 @@ 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-
3020
ActionTest:
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-
$scopes = 'local', 'global', 'system'
41-
$scopes | ForEach-Object {
42-
LogGroup "GitConfig - $_" {
43-
$Scope = $_
44-
$configList = git config --$Scope --list 2>&1
45-
if ($LASTEXITCODE -ne 0) {
46-
$global:LASTEXITCODE = 0
47-
$configList = $null
48-
} else {
49-
$config = @()
50-
$configList = $configList | Sort-Object
51-
$configList | ForEach-Object {
52-
$name, $value = $_ -split '=', 2
53-
if ($value -match '(?i)AUTHORIZATION:\s*(?<scheme>[^\s]+)\s+(?<token>.*)') {
54-
Add-GitHubMask -Value $matches['token']
55-
}
56-
$config += @{
57-
($name.Trim()) = ($value.Trim())
58-
}
59-
}
60-
$config | Format-Table -Property Name, Value
61-
}
62-
}
63-
}
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 }}

scripts/main.ps1

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -95,18 +95,6 @@ process {
9595
Get-GitHubConfig | Format-List
9696
}
9797

98-
LogGroup ' - Git Configuration - System' {
99-
Get-GitHubGitConfig -Scope system | Format-List
100-
}
101-
102-
LogGroup ' - Git Configuration - Global' {
103-
Get-GitHubGitConfig -Scope global | Format-List
104-
}
105-
106-
LogGroup ' - Git Configuration - Local' {
107-
Get-GitHubGitConfig | Format-List
108-
}
109-
11098
Write-Host '┗━━━━━━━━━━━━━━━━━━━━━━━━━━━┛'
11199
} catch {
112100
throw $_

0 commit comments

Comments
 (0)