# Copyright (c) 2020-2024, The Khronos Group Inc. # SPDX-License-Identifier: Apache-2.0 jobs: - job: check_file_format displayName: "Check file formatting" pool: vmImage: "ubuntu-latest" container: khronosgroup/docker-images:openxr-sdk.20240805@sha256:bbc790ccdc56f291d72877c6fdb825edbb9c3222efb63dc4d3ac34e3bf13dd7a steps: - script: ./file_format.sh displayName: File formatting checks (file_format.sh) - script: git diff --patch --exit-code > file_format.patch displayName: Save changes as diff - script: echo "The following files need file formatting:"; sed -n -e "s/^diff.* b\///p" file_format.patch condition: failed() - task: PublishPipelineArtifact@1 displayName: Publish diff condition: failed() inputs: path: $(System.DefaultWorkingDirectory)/file_format.patch artifact: file_format_changes