auto check and update #341
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 check and update" | |
on: | |
# push: | |
# branches: | |
# - 'master' | |
workflow_dispatch: | |
schedule: | |
- cron: "30 17 * * *" | |
jobs: | |
checkUpdate: | |
runs-on: windows-latest | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
token: ${{secrets.ACTIONS_TOKEN}} | |
- name: Set up Python 3.10 | |
uses: actions/setup-python@v3 | |
with: | |
python-version: 3.10.4 | |
- run: pip install requests gitpython | |
- name: Check and Update | |
working-directory: ${{env.GITHUB_WORKSPACE}} | |
run: | | |
git config --global user.name "github-actions[bot]" | |
git config --global user.email "41898282+github-actions[bot]@users.noreply.github.com" | |
git submodule update --init --recursive --remote | |
git commit -am "fetch upstream SDK" | |
python scripts/checkLLRelease.py | |
git push && git push --tags || exit 0 |