Skip to content

fix: 变量范围

fix: 变量范围 #12

Workflow file for this run

name: Update README and publish release
on:
push:
tags:
- 'v*.*.*'
jobs:
main:
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Set Git Config
run: |
git config --global user.name "Starry Trace Sky"
git config --global user.email "starrytracesky@qq.com"
git remote update
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: '3.11.2'
- name: Install requirements
run: pip install -r requirements_action_update_md.txt
- name: Update README and Publish Release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: python .github/workflows/update_md.py
- name: Commit, merge and push changes
run: |
git add -A
git commit -m "docs[bot]: Auto update README.md"
git push