Download PowerShell-master/.github/workflows/copilot-setup-steps.yml from MegaBites-AI/Windows-powershell: direct link, hf CLI and curl.
- Browser
- Download file 1.99 kB
-
https://huggingface.co/datasets/MegaBites-AI/Windows-powershell/resolve/main/PowerShell-master/.github/workflows/copilot-setup-steps.yml
- Command line
-
hf download hf://datasets/MegaBites-AI/Windows-powershell/PowerShell-master/.github/workflows/copilot-setup-steps.yml
-
curl -L -o copilot-setup-steps.yml https://huggingface.co/datasets/MegaBites-AI/Windows-powershell/resolve/main/PowerShell-master/.github/workflows/copilot-setup-steps.yml
1.99 kB
| name: "Copilot Setup Steps" | |
| # Allow testing of the setup steps from your repository's "Actions" tab. | |
| on: | |
| workflow_dispatch: | |
| pull_request: | |
| branches: | |
| - master | |
| paths: | |
| - ".github/workflows/copilot-setup-steps.yml" | |
| permissions: | |
| contents: read | |
| jobs: | |
| # The job MUST be called `copilot-setup-steps` or it will not be picked up by Copilot. | |
| # See https://docs.github.com/en/copilot/customizing-copilot/customizing-the-development-environment-for-copilot-coding-agent | |
| copilot-setup-steps: | |
| runs-on: ubuntu-latest | |
| permissions: | |
| contents: read | |
| # You can define any steps you want, and they will run before the agent starts. | |
| # If you do not check out your code, Copilot will do this for you. | |
| steps: | |
| - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 | |
| with: | |
| fetch-depth: 1000 | |
| - name: Bootstrap | |
| if: success() | |
| run: |- | |
| $title = 'Import Build.psm1' | |
| Write-Host "::group::$title" | |
| Import-Module ./build.psm1 -Verbose -ErrorAction Stop | |
| Write-LogGroupEnd -Title $title | |
| $title = 'Switch to public feed' | |
| Write-LogGroupStart -Title $title | |
| Switch-PSNugetConfig -Source Public | |
| Write-LogGroupEnd -Title $title | |
| $title = 'Bootstrap' | |
| Write-LogGroupStart -Title $title | |
| Start-PSBootstrap -Scenario DotNet | |
| Write-LogGroupEnd -Title $title | |
| $title = 'Install .NET Tools' | |
| Write-LogGroupStart -Title $title | |
| Start-PSBootstrap -Scenario Tools | |
| Write-LogGroupEnd -Title $title | |
| $title = 'Sync Tags' | |
| Write-LogGroupStart -Title $title | |
| Sync-PSTags -AddRemoteIfMissing | |
| Write-LogGroupEnd -Title $title | |
| $title = 'Setup .NET environment variables' | |
| Write-LogGroupStart -Title $title | |
| Find-DotNet -SetDotnetRoot | |
| Write-LogGroupEnd -Title $title | |
| shell: pwsh | |