Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
51 changes: 51 additions & 0 deletions .github/workflows/nrg.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
name: Regenerate READMEs
on:
push:
branches: [main]
paths:
- 'README.src.md'
- '.github/workflows/nrg.yml'
pull_request:
paths:
- 'README.md'
- 'README.de.md'
- 'README.es.md'
- 'README.fr.md'
- 'README.hi.md'
- 'README.ko.md'
- 'README.pt_br.md'
- 'README.zh_tw.md'
- 'README.src.md'
permissions:
contents: write
jobs:
regenerate:
if: github.event_name == 'push'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
token: ${{ secrets.GITHUB_TOKEN }}
- uses: nanolaba/nrg-action@v1
with:
file: README.src.md
nrg-version: '1.1'
- name: Commit regenerated READMEs
run: |
if [ -n "$(git status --porcelain README.md README.de.md README.es.md README.fr.md README.hi.md README.ko.md README.pt_br.md README.zh_tw.md)" ]; then
git config user.name "github-actions[bot]"
git config user.email "41898282+github-actions[bot]@users.noreply.github.com"
git add README.md README.de.md README.es.md README.fr.md README.hi.md README.ko.md README.pt_br.md README.zh_tw.md
git commit -m "docs: regenerate READMEs from README.src.md"
git push
fi
drift-check:
if: github.event_name == 'pull_request'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: nanolaba/nrg-action@v1
with:
file: README.src.md
mode: check
nrg-version: '1.1'
2 changes: 2 additions & 0 deletions README.de.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
<!-- This file was automatically generated by Nanolaba Readme Generator (NRG) 1.1 -->
<!-- Visit https://github.com/nanolaba/readme-generator for details -->
# Ultimativer Python-Lernführer

[![GitHub Actions Workflow Status](https://img.shields.io/github/actions/workflow/status/huangsam/ultimate-python/ci.yml)](https://github.com/huangsam/ultimate-python/actions)
Expand Down
2 changes: 2 additions & 0 deletions README.es.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
<!-- This file was automatically generated by Nanolaba Readme Generator (NRG) 1.1 -->
<!-- Visit https://github.com/nanolaba/readme-generator for details -->
# Guía de estudio "Python Definitivo"

[![GitHub Actions Workflow Status](https://img.shields.io/github/actions/workflow/status/huangsam/ultimate-python/ci.yml)](https://github.com/huangsam/ultimate-python/actions)
Expand Down
2 changes: 2 additions & 0 deletions README.fr.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
<!-- This file was automatically generated by Nanolaba Readme Generator (NRG) 1.1 -->
<!-- Visit https://github.com/nanolaba/readme-generator for details -->
# Guide d’étude Python ultime

[![GitHub Actions Workflow Status](https://img.shields.io/github/actions/workflow/status/huangsam/ultimate-python/ci.yml)](https://github.com/huangsam/ultimate-python/actions)
Expand Down
2 changes: 2 additions & 0 deletions README.hi.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
<!-- This file was automatically generated by Nanolaba Readme Generator (NRG) 1.1 -->
<!-- Visit https://github.com/nanolaba/readme-generator for details -->
# अल्टीमेट Python अध्ययन गाइड

[![GitHub Actions Workflow Status](https://img.shields.io/github/actions/workflow/status/huangsam/ultimate-python/ci.yml)](https://github.com/huangsam/ultimate-python/actions)
Expand Down
2 changes: 2 additions & 0 deletions README.ko.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
<!-- This file was automatically generated by Nanolaba Readme Generator (NRG) 1.1 -->
<!-- Visit https://github.com/nanolaba/readme-generator for details -->
# Ultimate Python 학습 가이드

[![GitHub Actions Workflow Status](https://img.shields.io/github/actions/workflow/status/huangsam/ultimate-python/ci.yml)](https://github.com/huangsam/ultimate-python/actions)
Expand Down
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
<!-- This file was automatically generated by Nanolaba Readme Generator (NRG) 1.1 -->
<!-- Visit https://github.com/nanolaba/readme-generator for details -->
# Ultimate Python study guide

[![GitHub Actions Workflow Status](https://img.shields.io/github/actions/workflow/status/huangsam/ultimate-python/ci.yml)](https://github.com/huangsam/ultimate-python/actions)
Expand Down
2 changes: 2 additions & 0 deletions README.pt_br.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
<!-- This file was automatically generated by Nanolaba Readme Generator (NRG) 1.1 -->
<!-- Visit https://github.com/nanolaba/readme-generator for details -->
# Ultimate Python - O seu guia de estudos de Python definitivo

[![GitHub Actions Workflow Status](https://img.shields.io/github/actions/workflow/status/huangsam/ultimate-python/ci.yml)](https://github.com/huangsam/ultimate-python/actions)
Expand Down
1,470 changes: 1,470 additions & 0 deletions README.src.md

Large diffs are not rendered by default.

2 changes: 2 additions & 0 deletions README.zh_tw.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
<!-- This file was automatically generated by Nanolaba Readme Generator (NRG) 1.1 -->
<!-- Visit https://github.com/nanolaba/readme-generator for details -->
# Ultimate Python 學習大綱

[![GitHub Actions Workflow Status](https://img.shields.io/github/actions/workflow/status/huangsam/ultimate-python/ci.yml)](https://github.com/huangsam/ultimate-python/actions)
Expand Down