Skip to content

Matter 1.4 upmerge

Matter 1.4 upmerge #1

# 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

View workflow run for this annotation

GitHub Actions / Check for changes to data_model directory without a sha update

Invalid workflow file

The workflow is not valid. .github/workflows/check-data-model-directory-updates.yaml (Line: 26, Col: 9): Unrecognized named-value: 'git'. Located at position 1 within expression: git diff --name-only HEAD^..HEAD data_model/ | grep -q spec_sha
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