Skip to content

Commit

Permalink
Fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
hectorcast-db committed Jul 9, 2024
1 parent a3c82db commit 0079e6a
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 11 deletions.
2 changes: 1 addition & 1 deletion .codegen/changelog_config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ change_types:
- message: Bug Fixes
tag: "[Fix]"
- message: Documentation
tag: "[Docs]"
tag: "[Doc]"
- message: Internal Changes
tag: "[Internal]"
- message: Dependency Updates
Expand Down
16 changes: 6 additions & 10 deletions .github/workflows/push.yml
Original file line number Diff line number Diff line change
Expand Up @@ -67,13 +67,9 @@ jobs:
- name: Validate Tag
run: |
TAG=$(echo ${{ github.event.pull_request.title }} | sed -ne 's/\[\(.*\)\].*/\1/p')
echo "Found tag {$TAG}"
# The status code for grep will be 1 if no match, and 0 if a match.
# Store in variable to hide the actual grep result from the console output.
MATCH=$(cat .codegen/changelog_config.yml | grep "tag: \"\[$(echo $TAG)\]\"")
- name: Log failure
if: failure()
run: |
echo "Invalid or missing tag in commit message"
exit 1
if grep -q "tag: \"[$TAG]\"" .codegen/changelog_config.yml; then
echo "Invalid or missing tag in commit message: [$TAG]"
exit 1
else
echo "Valid tag found: [$TAG]"
fi

0 comments on commit 0079e6a

Please sign in to comment.