-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[CI & i18n] GH action to run i18n-check + new fix GH action (#4620)
- Loading branch information
Showing
6 changed files
with
43 additions
and
1 deletion.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
name: i18n | ||
|
||
on: | ||
pull_request: | ||
|
||
jobs: | ||
i18n-check: | ||
name: I18N check | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- run: scripts/i18n-check.sh -u | ||
- run: .github/workflows/scripts/i18n-check-helper.sh |
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
#!/bin/bash -e | ||
|
||
echo "For localization docs, see https://opentelemetry.io/docs/contributing/localization" | ||
|
||
CHANGES=`git status --porcelain` | ||
|
||
if [[ -z $CHANGES ]]; then | ||
echo "All localization pages have the requisit commit hash. <3" | ||
exit; | ||
fi | ||
|
||
cat <<EOS | ||
Some i18n pages are missing the 'default_lang_commit' front matter field. | ||
To fix this in your local development environment, run | ||
scripts/i18n-check.sh -u | ||
and commit the changes for your locale. Here are the list of pages that | ||
need to be updated: | ||
--- | ||
EOS | ||
|
||
echo "$CHANGES" | ||
echo "---" | ||
|
||
exit 1 |
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
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
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