merge main and fix conflicts #20
This file contains hidden or 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 NEWS in README | |
| on: | |
| push: | |
| paths: | |
| - 'docs/NEWS.md' | |
| - 'docs/NEWS_zh.md' | |
| branches-ignore: | |
| - 'main' | |
| # Prevent concurrent runs that modify README files | |
| concurrency: | |
| group: readme-updates-${{ github.ref }} | |
| cancel-in-progress: false | |
| jobs: | |
| updateNews: | |
| name: NEWS Updater | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v6 | |
| with: | |
| fetch-depth: 0 | |
| - name: Set up Python | |
| uses: actions/setup-python@v6 | |
| with: | |
| python-version: '3.10' | |
| - name: Update NEWS in README files | |
| run: python .github/scripts/update_news.py | |
| - name: Commit changes | |
| run: | | |
| git config --local user.email "github-actions[bot]@users.noreply.github.com" | |
| git config --local user.name "github-actions[bot]" | |
| git add README.md README_zh.md | |
| git diff --staged --quiet || git commit -m "docs: auto-sync NEWS section to README files" | |
| git push | |