diff --git a/.github/workflows/push.yml b/.github/workflows/push.yml index ff813bfa8..a61fee241 100644 --- a/.github/workflows/push.yml +++ b/.github/workflows/push.yml @@ -52,9 +52,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