diff --git a/.github/workflows/check-installation.yml b/.github/workflows/check-installation.yml index ea79b7f..d17ad4a 100644 --- a/.github/workflows/check-installation.yml +++ b/.github/workflows/check-installation.yml @@ -17,4 +17,6 @@ jobs: Install-AtomicRedTeam -RepoOwner "${{ github.event.pull_request.head.repo.owner.login }}" -Branch "${{ github.event.pull_request.head.ref }}" -Force if($error.contains("Installation of AtomicRedTeam Failed")){ exit 1 - } \ No newline at end of file + } + IEX (IWR 'https://raw.githubusercontent.com/${{ github.event.pull_request.head.repo.full_name }}/${{ github.event.pull_request.head.ref }}/install-atomicsfolder.ps1' -UseBasicParsing); + Install-AtomicsFolder -Force diff --git a/install-atomicsfolder.ps1 b/install-atomicsfolder.ps1 index 7ccaef4..aef38aa 100644 --- a/install-atomicsfolder.ps1 +++ b/install-atomicsfolder.ps1 @@ -1,4 +1,4 @@ -function Install-AtomicsFolder { +function Install-AtomicsFolder { <# .SYNOPSIS @@ -141,4 +141,4 @@ Write-Error "Installation of the AtomicsFolder Failed." Write-Host $_.Exception.Message`n } -} \ No newline at end of file +}