Skip to content

Add setting to disable OneNote backup #4

Add setting to disable OneNote backup

Add setting to disable OneNote backup #4

Workflow file for this run

name: Validate XML
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
on:
push:
branches:
- main
paths:
- configs/**.xml
jobs:
update:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Check for unique GUIDs
id: guides
shell: pwsh
working-directory: "${{ github.workspace }}"
run: |
$XmlGuids = Get-ChildItem -Path "${{ github.workspace }}/configs" -Recurse -Include "*.xml" -Exclude "Uninstall-Microsoft365Apps.xml" | ForEach-Object {
[System.Xml.XmlDocument]$Xml = Get-Content -Path $_.FullName
[PSCustomObject]@{
Name = $_.Name
Guid = $Xml.Configuration.ID
}
}
if ($XmlGuids.Guid.Count -ne ($XmlGuids.Guid | Get-Unique).Count) { throw "GUIDs in configuration XML files are not unique." }