chore(ci): tweak i18n workflows
This commit is contained in:
7
.github/workflows/build-storybook.yml
vendored
7
.github/workflows/build-storybook.yml
vendored
@@ -3,7 +3,12 @@ on:
|
|||||||
push:
|
push:
|
||||||
branches:
|
branches:
|
||||||
- develop
|
- develop
|
||||||
paths: ['web/stories/**', 'web/components/**', 'web/.storybook/**'] # Trigger the action only when files change in the folders defined here
|
paths: [
|
||||||
|
'web/stories/**',
|
||||||
|
'web/components/**',
|
||||||
|
'web/.storybook/**',
|
||||||
|
'web/i18n/**',
|
||||||
|
] # Trigger the action only when files change in the folders defined here
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build-and-deploy:
|
build-and-deploy:
|
||||||
|
|||||||
20
.github/workflows/translations.yml
vendored
20
.github/workflows/translations.yml
vendored
@@ -3,7 +3,7 @@ name: Translation job
|
|||||||
on:
|
on:
|
||||||
schedule:
|
schedule:
|
||||||
# Run the workflow every hour
|
# Run the workflow every hour
|
||||||
- cron: "0 * * * *"
|
- cron: '0 * * * *'
|
||||||
push:
|
push:
|
||||||
paths:
|
paths:
|
||||||
- 'web/i18n/en/translation.json'
|
- 'web/i18n/en/translation.json'
|
||||||
@@ -51,12 +51,12 @@ jobs:
|
|||||||
CROWDIN_PROJECT_ID: ${{ secrets.CROWDIN_PROJECT_ID }}
|
CROWDIN_PROJECT_ID: ${{ secrets.CROWDIN_PROJECT_ID }}
|
||||||
CROWDIN_PERSONAL_TOKEN: ${{ secrets.CROWDIN_PERSONAL_TOKEN }}
|
CROWDIN_PERSONAL_TOKEN: ${{ secrets.CROWDIN_PERSONAL_TOKEN }}
|
||||||
|
|
||||||
- name: Commit changes
|
# - name: Commit changes
|
||||||
uses: EndBug/add-and-commit@v9
|
# uses: EndBug/add-and-commit@v9
|
||||||
with:
|
# with:
|
||||||
author_name: Owncast
|
# author_name: Owncast
|
||||||
author_email: owncast@owncast.online
|
# author_email: owncast@owncast.online
|
||||||
message: 'Commit updated translations'
|
# message: 'Commit updated translations'
|
||||||
add: 'web/i18n/**'
|
# add: 'web/i18n/**'
|
||||||
env:
|
# env:
|
||||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
|||||||
Reference in New Issue
Block a user