I have the following powershell build script I would like to run in github actions: cls…
- User
I have the following powershell build script I would like to run in github actions: cls
[string] null [string] false
foreach ( args ) { if ( arg -eq "test" ) { test = true } else { type = $arg } }
#region Regular Build write-host "Building project`n"
path_build = Join-Path path_scripts = Join-Path $path_root scripts
- Assistant
Sure! In order to run your PowerShell script in a GitHub Actions workflow, you can create a new GitHub Actions workflow file in your repository. Here's an example of what your
.github/workflows/build.ymlfile could look like:yamlname: Build on: push: branches: - main jobs: build: runs-on: windows-latest steps: - name: Checkout code uses: actions/checkout@v2 - name: Run build script shell: pwsh run: | $ErrorActionPreference = "Stop" .\path\to\your\build.ps1 -type Release
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.