-
-
Notifications
You must be signed in to change notification settings - Fork 183
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Add script to check translation length * Cleanups * Fix YML * Bump Super linter version * Fix yml * Fix YAML * Fix things * Linting fixes * Turn on logging n * Fix yml * Misc fixes * Misc fixes * Fixes * More fixes * Testing * Fixes * More fixes * Fix dirs * Fix src * Clean up * Revert linter changes * Add some logging
- Loading branch information
1 parent
e710c4e
commit 8c65d7e
Showing
17 changed files
with
304 additions
and
8 deletions.
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,57 @@ | ||
###################################### | ||
## Custom Web Almanac GitHub action ## | ||
###################################### | ||
# | ||
# This generates the chapters and tests the website when a pull request is | ||
# opened (or added to) on the original repo | ||
# | ||
name: Check Translation Lengths | ||
on: | ||
schedule: | ||
# ┌───────────── minute (0 - 59) | ||
# │ ┌───────────── hour (0 - 23) | ||
# │ │ ┌───────────── day of the month (1 - 31) | ||
# │ │ │ ┌───────────── month (1 - 12 or JAN-DEC) | ||
# │ │ │ │ ┌───────────── day of the week (0 - 6 or SUN-SAT) | ||
# │ │ │ │ │ | ||
# │ │ │ │ │ | ||
# │ │ │ │ │ | ||
# * * * * * | ||
- cron: '45 9 * * 0' | ||
workflow_dispatch: | ||
pull_request: | ||
paths: | ||
- '**.html' | ||
- '**.md' | ||
|
||
jobs: | ||
check_lengths: | ||
name: Check Lengths | ||
runs-on: ubuntu-20.04 | ||
steps: | ||
- name: Checkout Code | ||
uses: actions/[email protected] | ||
with: | ||
path: this_run | ||
# Full git history is needed to get a proper list of changed files | ||
fetch-depth: 0 | ||
- name: Checkout Code | ||
if: github.event_name == 'pull_request' | ||
uses: actions/[email protected] | ||
with: | ||
path: original | ||
ref: main | ||
repository: HTTPArchive/almanac.httparchive.org | ||
- name: Test changed translations | ||
if: github.event_name == 'pull_request' | ||
env: | ||
RUN_TYPE: ${{ github.event_name }} | ||
COMMIT_SHA: ${{ github.sha }} | ||
run: | | ||
cd this_run/src | ||
./tools/scripts/check_translation_length.sh | ||
- name: Test all translations | ||
if: github.event_name == 'workflow_dispatch' || github.event_name == 'schedule' | ||
run: | | ||
cd this_run/src | ||
./tools/scripts/check_translation_length.sh -a |
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
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
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
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
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
Oops, something went wrong.