Update Guide Translations #3
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
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" |