Skip to content

Commit

Permalink
🔀 Merge branch '60-github-tag-release-note' into 'gitlab_main'
Browse files Browse the repository at this point in the history
chore: Add GitHub Actions for release note automation
  • Loading branch information
JeongHeanKim committed Sep 6, 2023
1 parent 522c3e2 commit 935da94
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions .github/workflows/check_pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -88,5 +88,26 @@ jobs:
echo -e "${RED}######################################################################${END_COLOR}"
echo ""
exit 1
fi
checkSchema:
name: Check schema
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- run: npm ci
- run: npx json2ts ./schema/report_data.json > src/@types/report_data.d.ts --style.singleQuote --style.trailingComma=all --no-style.semi
- run: >-
if [[ $(git diff --name-only HEAD | grep 'src/@types/report_data.d.ts' || echo '') != "" ]]; then
RED="\e[31m"
END_COLOR="\e[0m"
echo ""
echo -e "${RED}###########################################################${END_COLOR}"
echo -e "${RED}# The report_data.d.ts of the report page do not match. #${END_COLOR}"
echo -e "${RED}# Please npx json2ts report_data.json before committing. #${END_COLOR}"
echo -e "${RED}###########################################################${END_COLOR}"
echo ""
exit 1
fi

0 comments on commit 935da94

Please sign in to comment.