This repository has been archived by the owner on Nov 13, 2024. It is now read-only.
Delete Retired .openpublishing.build.ps1 script of default branch #978
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
on: | |
pull_request: | |
branches: | |
- main | |
jobs: | |
check-samples-branch: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Check that samples branch refers to main. | |
run: | | |
$configPath = ".openpublishing.publish.config.json"; | |
$config = Get-Content $configPath | ConvertFrom-Json; | |
$samplesRepo = $config.dependent_repositories | Where-Object { | |
$_.url -eq "https://github.com/microsoft/quantum" | |
} | |
if ($samplesRepo.branch -ne "main") { | |
Write-Host "::error file=$configPath::Samples repository branch is not set to main for a PR targeting main." | |
exit 1; | |
} | |
shell: pwsh |