Download and Update source code. #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: Download and Update source code. | |
on: | |
workflow_dispatch: {} | |
schedule: | |
- cron: '0 0 * * 0' | |
jobs: | |
update: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Check out repository code | |
uses: actions/checkout@v2 | |
- name: Download latest code | |
run: bash download.sh | |
- name: Commit changes | |
env: | |
TZ: UTC | |
run: |- | |
git diff | |
git config --global user.email "[email protected]" | |
git config --global user.name "Vallado Bot" | |
git add -A && git commit -m "$(cat when.txt)" | |
git push |