MegaBites-AI/Windows-powershell
0308
1name: "Copilot Setup Steps"2 3# Allow testing of the setup steps from your repository's "Actions" tab.4on:5 workflow_dispatch:6 7 pull_request:8 branches:9 - master10 paths:11 - ".github/workflows/copilot-setup-steps.yml"12 13permissions:14 contents: read15 16jobs:17 # The job MUST be called `copilot-setup-steps` or it will not be picked up by Copilot.18 # See https://docs.github.com/en/copilot/customizing-copilot/customizing-the-development-environment-for-copilot-coding-agent19 copilot-setup-steps:20 runs-on: ubuntu-latest21 22 permissions:23 contents: read24 25 # You can define any steps you want, and they will run before the agent starts.26 # If you do not check out your code, Copilot will do this for you.27 steps:28 - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.229 with:30 fetch-depth: 100031 32 - name: Bootstrap33 if: success()34 run: |-35 $title = 'Import Build.psm1'36 Write-Host "::group::$title"37 Import-Module ./build.psm1 -Verbose -ErrorAction Stop38 Write-LogGroupEnd -Title $title39 40 $title = 'Switch to public feed'41 Write-LogGroupStart -Title $title42 Switch-PSNugetConfig -Source Public43 Write-LogGroupEnd -Title $title44 45 $title = 'Bootstrap'46 Write-LogGroupStart -Title $title47 Start-PSBootstrap -Scenario DotNet48 Write-LogGroupEnd -Title $title49 50 $title = 'Install .NET Tools'51 Write-LogGroupStart -Title $title52 Start-PSBootstrap -Scenario Tools53 Write-LogGroupEnd -Title $title54 55 $title = 'Sync Tags'56 Write-LogGroupStart -Title $title57 Sync-PSTags -AddRemoteIfMissing58 Write-LogGroupEnd -Title $title59 60 $title = 'Setup .NET environment variables'61 Write-LogGroupStart -Title $title62 Find-DotNet -SetDotnetRoot63 Write-LogGroupEnd -Title $title64 shell: pwsh65 