Skip to content

Merge pull request #145 from AxisCommunications/sync-20241104-1 #15

Merge pull request #145 from AxisCommunications/sync-20241104-1

Merge pull request #145 from AxisCommunications/sync-20241104-1 #15

name: Check manifest schemas format and release notes
on:
workflow_dispatch:
push:
paths:
- 'docs/develop/manifest-schemas/*'
- '.github/workflows/manifest-schemas.yml'
jobs:
manifest-schemas-release-notes:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Check manifest schemas format and release notes
run: |
base_path=docs/develop/manifest-schemas
release_notes_page=$base_path/index.md
new_schema_dummy_description=ADD-MANIFEST-SCHEMA-RELEASE-DESCRIPTION
ret=0
# Set +e to not having to handle the grep exit status
new_schema_found=$(grep "$new_schema_dummy_description" $release_notes_page || :)
[ -z "$new_schema_found" ] || {
printf '\n%s\n%s\n%s\n%s\n\n' \
"### One or more new manifest schemas found" \
"In file '$release_notes_page', replace string $new_schema_dummy_description" \
"with release notes." \
"Contact the responsible for the manifest schema update for information of the content of the new release."
ret=1
}
exit $ret