Skip to content
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

Delete Retired .openpublishing.build.ps1 script of default branch

Delete Retired .openpublishing.build.ps1 script of default branch #978

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