-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'origin/master'
- Loading branch information
Showing
3 changed files
with
40 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 |
---|---|---|
|
@@ -22,7 +22,7 @@ jobs: | |
- name: Push to GitHub | ||
uses: crazy-max/[email protected] | ||
with: | ||
target_branch: translations | ||
target_branch: translations_indev | ||
build_dir: 'dist' | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GTK }} |
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,32 @@ | ||
name: Generate Localized Readme # The name of your action | ||
|
||
on: | ||
workflow_dispatch: # Manual start | ||
push: # Run when committing to a branch | ||
branches: | ||
- master # Set the name of your branch if required | ||
paths: # Start translating only if readme file changed in current push | ||
- 'README.MD' | ||
- 'README.md' | ||
- 'readme.md' | ||
- 'Readme.md' | ||
|
||
jobs: | ||
translate: # Task name | ||
runs-on: ubuntu-latest # Running on an Ubuntu image | ||
steps: | ||
- name: Checkout code # Step: code check | ||
uses: actions/checkout@v2 # Using an action to test the code | ||
|
||
- name: Run translation # Step: start the translation | ||
uses: mrf0rtuna4/[email protected] # Using an action to translate | ||
env: | ||
LANGS: 'english,italian,dutch,spanish' # List of languages to be translated | ||
|
||
- name: Push to GitHub # Step: Submit changes to GitHub | ||
uses: crazy-max/[email protected] # Using an action to publish to GitHub Pages | ||
with: | ||
target_branch: translations # The branch to which the changes will be sent | ||
build_dir: 'dist' # The directory with the collected files | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GTK }} # Transferring a GitHub access token |
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