Skip to content

Commit

Permalink
tweaks
Browse files Browse the repository at this point in the history
  • Loading branch information
rajbos authored Sep 8, 2023
1 parent a8317e7 commit 327bc0b
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 11 deletions.
6 changes: 2 additions & 4 deletions .github/workflows/testing.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,7 @@ jobs:

- shell: pwsh
run: |
Write-Host "Found actions [${{ steps.load-actions.outputs.actions }}]"
$content = ${{ steps.load-actions.outputs.actions }}
$content = "${{ steps.load-actions.outputs.actions }}"
New-Item -Path 'actions.json' -Value $content -Force | Out-Null
$actions = $content | ConvertFrom-Json
if ($actions.Length -le 0) {
Expand Down Expand Up @@ -77,8 +76,7 @@ jobs:

- shell: pwsh
run: |
Write-Host "Found actions [${{ steps.load-actions.outputs.actions }}]"
$content = ${{ steps.load-actions.outputs.actions }}
$content = "${{ steps.load-actions.outputs.actions }}"
New-Item -Path 'actions.json' -Value $content -Force | Out-Null
$actions = $content | ConvertFrom-Json
if ($actions.Length -le 0) {
Expand Down
5 changes: 1 addition & 4 deletions Src/PowerShell/github-calls.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -327,8 +327,7 @@ function GetRawFile {
else {
$logUrl = $url
}
Write-Host "Loading file content from url [$logUrl]"


$Headers = Get-Headers -userName $userName -PAT $PAT
$requestResult
try {
Expand All @@ -340,8 +339,6 @@ function GetRawFile {
return ""
}

Write-Host "Got this result $requestResult"

try {
$result = $requestResult | Select-Object -Expand Content
}
Expand Down
3 changes: 0 additions & 3 deletions Src/PowerShell/load-used-actions.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -138,11 +138,8 @@ function GetAllUsedActionsFromRepo {
foreach ($workflowFile in $workflowFiles) {
try {
if ($null -ne $workflowFile.download_url -and $workflowFile.download_url.Length -gt 0 -and $workflowFile.download_url.Split("?")[0].EndsWith(".yml")) {
Write-Host "1: $($workflowFile.download_url)"
$workflow = GetRawFile -url $workflowFile.download_url -PAT $PAT
Write-Host "2"
$actions = GetActionsFromWorkflow -workflow $workflow -workflowFileName $workflowFile.name -repo $repo
Write-Host "3"

$actionsInRepo += $actions
}
Expand Down

0 comments on commit 327bc0b

Please sign in to comment.