Skip to content

tvtk-auto-update

tvtk-auto-update #2227

Workflow file for this run

name: tvtk-auto-update
on:
schedule:
- cron: "0 0 * * *"
push:
branches:
- master
pull_request:
branches:
- master
jobs:
script:
runs-on: ubuntu-latest
steps:
- name: Setup Python
uses: actions/setup-python@v5
with:
python-version: "3.10"
- name: Get Job URL
uses: Tiryoh/gha-jobid-action@v0
id: jobs
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
job_name: script
- name: checkout with submodule
uses: actions/checkout@v4
with:
persist-credentials: false
submodules: true
token: ${{ secrets.PERSONAL_ACCESSTOKEN }}
- name: Setup SSH
uses: MrSquaare/ssh-setup-action@v3
with:
host: github.com
private-key: ${{ secrets.SSH_PRIVATE_KEY }}
- name: install
run: |
(cd mayavi; git fetch origin; git checkout master; git reset --hard origin/master; git branch -a)
pip3 install -U pip setuptools
pip3 install -r ./requirements.txt
curl -o- https://raw.githubusercontent.com/transifex/cli/master/install.sh | bash
mv tx /usr/local/bin/tx
- name: update
env:
SPHINXINTL_TRANSIFEX_ORGANIZATION_NAME: tkoyama010
SPHINXINTL_TRANSIFEX_USERNAME: api
SPHINXINTL_TRANSIFEX_PROJECT_NAME: tvtk-doc
TX_TOKEN: ${{ secrets.TX_TOKEN }}
run: |
sh ./locale/update.sh
- name: git_config
run: |
git config --global user.email $GITHUB_REPOSITORY
git config --global user.name $GITHUB_REPOSITORY
- name: commit
if: contains(github.event.head_commit.message, '[ci skip]') == false && contains(github.ref, 'master')
env:
JOB_ID: ${{ steps.jobs.outputs.job_id }}
HTML_URL: ${{ steps.jobs.outputs.html_url }}
run: |
git add .
git commit --allow-empty -m "[ci skip] $JOB_ID
$HTML_URL"
git remote -v
git remote add github [email protected]:$GITHUB_REPOSITORY.git
git push github master