Skip to content
This repository has been archived by the owner on Nov 16, 2023. It is now read-only.

Commit

Permalink
Set samples branch back to master (#803)
Browse files Browse the repository at this point in the history
  • Loading branch information
Chris Granade committed May 1, 2020
2 parents 4d85dd6 + 7bb7f96 commit 0d0d8b7
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 1 deletion.
22 changes: 22 additions & 0 deletions .github/workflows/check-samples-branch.yml
@@ -0,0 +1,22 @@
on:
pull_request:
branches:
- master

jobs:
check-samples-branch:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Check that samples branch refers to master.
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 "master") {
Write-Host "::error file=$configPath::Samples repository branch is not set to master for a PR targeting master."
exit 1;
}
shell: pwsh
2 changes: 1 addition & 1 deletion .openpublishing.publish.config.json
Expand Up @@ -72,7 +72,7 @@
{
"path_to_root": "articles/quantum",
"url": "https://github.com/microsoft/quantum",
"branch": "feature/standalone",
"branch": "master",
"branch_mapping": {}
}
],
Expand Down

0 comments on commit 0d0d8b7

Please sign in to comment.