diff --git a/.codegen/changelog_config.yml b/.codegen/changelog_config.yml index ee86db8a7a..5f6dc40ff9 100644 --- a/.codegen/changelog_config.yml +++ b/.codegen/changelog_config.yml @@ -11,5 +11,8 @@ change_types: tag: "[Dependency]" - message: Exporter tag: "[Exporter]" + # 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 354747f208..0936a2807d 100644 --- a/.github/workflows/push.yml +++ b/.github/workflows/push.yml @@ -67,9 +67,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