diff --git a/.codegen/changelog_config.yml b/.codegen/changelog_config.yml index c137c72bb..318cbdeb5 100644 --- a/.codegen/changelog_config.yml +++ b/.codegen/changelog_config.yml @@ -7,5 +7,8 @@ change_types: tag: "[Doc]" - message: Internal Changes tag: "[Internal]" + # Does not appear in the Changelog. Only for PR validation. + - message: Release + tag: "[Release]" # Default for messages without a tag - message: Other Changes \ No newline at end of file diff --git a/.github/workflows/push.yml b/.github/workflows/push.yml index d0a79994d..4a245395c 100644 --- a/.github/workflows/push.yml +++ b/.github/workflows/push.yml @@ -88,9 +88,9 @@ jobs: - name: Validate Tag run: | TAG=$(echo ${{ github.event.pull_request.title }} | sed -ne 's/\[\(.*\)\].*/\1/p') - if grep -q "tag: \"[$TAG]\"" .codegen/changelog_config.yml; then + if grep -q "tag: \"\[$TAG\]\"" .codegen/changelog_config.yml; then + echo "Valid tag found: [$TAG]" + else echo "Invalid or missing tag in commit message: [$TAG]" exit 1 - else - echo "Valid tag found: [$TAG]" fi \ No newline at end of file