test add dependent #157
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: auto | |
on: | |
push: | |
pull_request: | |
workflow_dispatch: | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
env: | |
TZ: "Asia/Shanghai" | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v2 | |
with: | |
ref: ${{ github.head_ref }} | |
fetch-depth: 0 | |
- name: Set up Python 3.8 | |
uses: actions/setup-python@v2 | |
with: | |
python-version: 3.8 | |
- name: Install dependencies | |
run: | | |
python -m pip install --upgrade pip | |
if [ -f requirements.txt ]; then python -m pip install -r requirements.txt; fi | |
- name: Update readme | |
run: | | |
cd scripts && python main.py merge_md_yaml | |
- name: Get date time | |
id: date | |
run: echo "::set-output name=date::$(date -u +%Y-%m-%dT%H:%M:%SZ)" | |
- name: Commit Updated | |
uses: stefanzweifel/git-auto-commit-action@v4 | |
with: | |
commit_message: "auto update @ ${{ steps.date.outputs.date }} ${{ env.TZ }}" |