Skip to content

Update Guide Translations #42

Update Guide Translations

Update Guide Translations #42

name: Update Guide Translations
on:
schedule:
# Run every sunday at midnight
- cron: '0 0 * * 0'
workflow_dispatch:
jobs:
update_guides:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: '3.x'
- name: Run script
run: python scripts/update-guide.py
- name: Check for changes
id: git-diff
run: echo "::set-output name=changes::$(git diff --exit-code)"
- name: Create Pull Request
if: steps.git-diff.outputs.changes != ''
uses: peter-evans/create-pull-request@v3
with:
title: "Update guides"
body: "This PR updates the user guide translations."
branch: "update-user-guide-translations"