summarize_progress #48
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: summarize_progress | |
on: | |
schedule: | |
- cron: '30 23 * * 5' | |
jobs: | |
ci: | |
if: github.repository == 'python/python-docs-zh-tw' | |
runs-on: ubuntu-latest | |
permissions: | |
# Give the default GITHUB_TOKEN write permission to commit and push the | |
# added or changed files to the repository. | |
contents: write | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Install poetry | |
uses: abatilo/actions-poetry@v3 | |
- name: Execute Check Process | |
run: | | |
chmod +x .scripts/summarize_progress.sh | |
.scripts/summarize_progress.sh | |
shell: bash | |
- name: Checkout wiki code | |
uses: actions/checkout@v4 | |
with: | |
repository: ${{github.repository}}.wiki | |
path: markdown | |
- name: Copy content | |
run: | | |
cp .scripts/summarize_progress/result.md markdown/各檔案翻譯進度清單.md | |
shell: bash | |
- name: Commit wiki code | |
uses: stefanzweifel/git-auto-commit-action@v5 | |
with: | |
commit_message: Weekly Update -- Summarize Progress | |
repository: markdown |