Skip to content

Generate Localized Readme #35

Generate Localized Readme

Generate Localized Readme #35

Workflow file for this run

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