Skip to content

Commit

Permalink
Merge pull request #265 from samsmithnz/feature/innerpowershellfix
Browse files Browse the repository at this point in the history
Added InnerPowerShell@1 support
  • Loading branch information
samsmithnz authored Mar 1, 2021
2 parents 90cb9c1 + 1069d6b commit 2719f7a
Showing 1 changed file with 25 additions and 25 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1687,6 +1687,31 @@ public GitHubActions.Step CreateHugoStep(AzurePipelines.Step step)
return gitHubStep;
}

private GitHubActions.Step CreateInnerPowershellStep(AzurePipelines.Step step)
{

//From:
//- task: InlinePowershell@1
// displayName: 'old Powershell task'
// inputs:
// Script: |
// Write-Host 'Hello World'

//To:
//- name: old Powershell task
// run: |
// Write-Host 'Hello World'
// shell: powershell


string script = GetStepInput(step, "script");
step.script = script;

GitHubActions.Step gitHubStep = CreateScriptStep("powershell", step);

return gitHubStep;
}

//TODO: Finish this Kubernetes Step
//public GitHubActions.Step CreateKubernetesStep(AzurePipelines.Step step)
//{
Expand Down Expand Up @@ -2313,31 +2338,6 @@ private GitHubActions.Step CreateAzurePowershellStep(AzurePipelines.Step step)
return gitHubStep;
}

private GitHubActions.Step CreateInnerPowershellStep(AzurePipelines.Step step)
{

//From:
//- task: InlinePowershell@1
// displayName: 'old Powershell task'
// inputs:
// Script: |
// Write-Host 'Hello World'

//To:
//- name: old Powershell task
// run: |
// Write-Host 'Hello World'
// shell: powershell


string script = GetStepInput(step, "script");
step.script = script;

GitHubActions.Step gitHubStep = CreateScriptStep("powershell", step);

return gitHubStep;
}

private GitHubActions.Step CreateXamarinAndroidStep(AzurePipelines.Step step)
{
//coming from:
Expand Down

0 comments on commit 2719f7a

Please sign in to comment.