feat: user feedback [skip cypress] #8165
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: i18n Check | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.head_ref || github.ref }} | |
cancel-in-progress: true | |
on: | |
pull_request: | |
branches: ['main'] | |
push: | |
branches: ['main'] | |
jobs: | |
i18n-check: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@2541b1294d2704b0964813337f33b291d3f8596b # v3.0.2 | |
- name: i18n compile | |
uses: ./.github/actions/build | |
with: | |
YARN_COMMAND: i18n | |
USE_NEXT_CACHE: 'false' | |
- name: check diff | |
run: | | |
if [[ -z $(git status -s) ]] | |
then | |
echo "i18n up to date" | |
else | |
echo "please run yarn i18n" | |
exit 1 | |
exit | |
fi |