File tree Expand file tree Collapse file tree 1 file changed +28
-0
lines changed
Expand file tree Collapse file tree 1 file changed +28
-0
lines changed Original file line number Diff line number Diff line change @@ -109,3 +109,31 @@ jobs:
109109 }
110110 Write-Host "Prerelease check passed: '$installed' contains a prerelease segment."
111111 }
112+
113+ ActionTestAnonymous :
114+ strategy :
115+ fail-fast : false
116+ matrix :
117+ os : [ubuntu-latest, windows-latest, macOS-latest]
118+ runs-on : ${{ matrix.os }}
119+ name : ' ${{ matrix.os }} - [anonymous]'
120+ steps :
121+ - name : Checkout repo
122+ uses : actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
123+ with :
124+ persist-credentials : false
125+
126+ - name : Action-Test (anonymous)
127+ uses : ./
128+ with :
129+ Token : ' '
130+
131+ - name : Verify installed version
132+ shell : pwsh
133+ run : |
134+ $installed = ($PSVersionTable.PSVersion).ToString()
135+ Write-Host "Installed PowerShell version: $installed"
136+ if ([string]::IsNullOrWhiteSpace($installed)) {
137+ throw "Failed: PowerShell version could not be determined after anonymous install."
138+ }
139+ Write-Host "Anonymous install succeeded with version: $installed"
You can’t perform that action at this time.
0 commit comments