-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' of https://github.com/mrf0rtuna4/HeypersRP
- Loading branch information
Showing
2 changed files
with
34 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,33 @@ | ||
name: Generate Localized Readme # The name of your action | ||
|
||
on: | ||
schedule: # Scheduled start | ||
- cron: "0 */24 * * *" # Every 24 hours | ||
|
||
workflow_dispatch: # Manual start | ||
push: # Run when committing to a branch | ||
branches: | ||
- master # Set the name of your branch if required | ||
|
||
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/Github-Readme-AutoTranslator@v1.2.0 # Using an action to translate | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GTK }} # Transferring a GitHub access token | ||
|
||
# List of languages to be translated | ||
LANGS: 'serbian,italian,english' | ||
|
||
- name: Push to GitHub # Step: Submit changes to GitHub | ||
uses: crazy-max/ghaction-github-pages@v3.1.0 # 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