You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
name: Verify Sample solution 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@v2
- uses: actions/setup-dotnet@v1
with:
dotnet-version: '9.0.100'
- name: "Regenerating Solutions"
run: .\tracer\build.ps1 RegenerateSolutions
- name: "Verify no changes in generated solutions"
run: |
git diff --quiet
if ($LASTEXITCODE -eq 1) {
git diff
Write-Error "Found changes in generated solutions. Did you add a new sample? Regenerate the build solution locally by running the target 'RegenerateSolutions', and ensure the changed files are committed to git."