This repository has been archived by the owner on Nov 16, 2023. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Set samples branch back to master (#803)
- Loading branch information
Showing
2 changed files
with
23 additions
and
1 deletion.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 |
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