-
Notifications
You must be signed in to change notification settings - Fork 157
Expand file tree
/
Copy pathverify_generated_pipeline_is_updated.yml
More file actions
36 lines (29 loc) · 1.23 KB
/
verify_generated_pipeline_is_updated.yml
File metadata and controls
36 lines (29 loc) · 1.23 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
name: Verify ultimate-pipeline.yml changes have been persisted
on:
pull_request:
workflow_dispatch:
jobs:
verify_solution_changes_are_persisted:
runs-on: windows-latest
permissions:
contents: read
steps:
- name: Support longpaths
run: git config --system core.longpaths true
- name: Checkout
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
- uses: actions/setup-dotnet@baa11fbfe1d6520db94683bd5c7a3818018e4309 # v5.1.0
with:
global-json-file: global.json
- name: "Running GenerateUpdateGitHubPipelineStep"
run: .\tracer\build.ps1 GenerateUpdateGitHubPipelineStep
- name: "Verify no changes in generated templates"
run: |
git diff --quiet -- .\.azure-pipelines\steps\update-github-pipeline-status.yml
if ($LASTEXITCODE -eq 1) {
git diff
Write-Error "Found changes in generated template. Did you change the stages in ultimate-pipeline? Regenerate the template locally by running the target 'GenerateUpdateGitHubPipelineStep', and ensure the changed files are committed to git."
Exit 1
} else {
echo "No changes found to generated template"
}