Skip to content

Commit

Permalink
fix(ci): only run converted-types-check if types changed (#1006)
Browse files Browse the repository at this point in the history
BEDS-90
  • Loading branch information
guybrush authored Oct 22, 2024
1 parent b612d70 commit 34df501
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/backend-converted-types-check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,14 @@ name: Backend-Converted-Types-Check
on:
push:
paths:
- 'backend/**'
- 'backend/pkg/api/types/**'
- 'frontend/types/api/**'
branches:
- main
- staging
pull_request:
paths:
- 'backend/**'
- 'backend/pkg/api/types/**'
- 'frontend/types/api/**'
branches:
- '*'
Expand Down Expand Up @@ -41,6 +41,7 @@ jobs:
newHash=$(find ../frontend/types/api -type f -print0 | sort -z | xargs -0 sha1sum | sha256sum | head -c 64)
if [ "$currHash" != "$newHash" ]; then
echo "frontend-types have changed, please commit the changes"
git diff --stat
exit 1
fi

0 comments on commit 34df501

Please sign in to comment.