Merge remote branch 'upstreamrepo/main' #14
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
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 |