Gen TeaFile #2914
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
# This workflow will install Python dependencies, run tests and lint with a single version of Python | |
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-python-with-github-actions | |
name: Gen TeaFile | |
on: | |
# schedule: | |
# - cron: '0 1,2,4,9 * * *' | |
# push: | |
# branches: | |
# - main | |
workflow_dispatch: | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
# 使用别人封装好的的action,用于clone该仓库的源码到工作流中 | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- name: Set up Python 3.10 | |
uses: actions/setup-python@v3 | |
with: | |
python-version: "3.10" | |
- name: Install dependencies | |
run: | | |
python -m pip install --upgrade pip | |
if [ -f tencentdoc/requirements.txt ]; then pip install -r tencentdoc/requirements.txt; fi | |
- name: 'Gen File' | |
run: python tencentdoc/excel.py | |
- name: Add Diff | |
run: git add . | |
- name: ADD PULL | |
run: git pull | |
- name: Commit files | |
run: | | |
git config --global user.email "41898282+github-actions[bot]@users.noreply.github.com" | |
git config --global user.name "github-actions" | |
git commit -m "bot fetch tea File" -a | |
- name: Push changes | |
uses: ad-m/github-push-action@master | |
with: | |
github_token: ${{secrets.TOKEN}} | |
branch: main | |