Matter 1.4 upmerge #1
Workflow file for this run
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
# Copyright (c) 2024 Project CHIP Authors | ||
# | ||
# Licensed under the Apache License, Version 2.0 (the "License"); | ||
# you may not use this file except in compliance with the License. | ||
# You may obtain a copy of the License at | ||
# | ||
# http://www.apache.org/licenses/LICENSE-2.0 | ||
# | ||
# Unless required by applicable law or agreed to in writing, software | ||
# distributed under the License is distributed on an "AS IS" BASIS, | ||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
# See the License for the specific language governing permissions and | ||
# limitations under the License. | ||
name: Check for changes to data_model directory without a sha update | ||
on: | ||
pull_request: | ||
paths: | ||
- "data_model/**" | ||
jobs: | ||
check-submodule-update-label: | ||
name: Check for changes to data_model directory without a sha update | ||
runs-on: ubuntu-latest | ||
if: "git diff --name-only HEAD^..HEAD data_model/ | grep -q spec_sha" | ||
Check failure on line 26 in .github/workflows/check-data-model-directory-updates.yaml GitHub Actions / Check for changes to data_model directory without a sha updateInvalid workflow file
|
||
steps: | ||
- name: Error Message | ||
run: echo This pull request attempts to update data_model directory, but is missing updates to spec_sha file with the latest version of the sha. Files in the data_model directory are generated automatically and should not be updated manually. | ||
- name: Fail Job | ||
run: exit 1 |