periodic-update #65355
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: periodic-update | |
on: | |
workflow_dispatch: | |
schedule: | |
- cron: '*/15 * * * *' | |
jobs: | |
periodic-update: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: install | |
run: sudo apt-get install lftp | |
- name: update | |
run: ./update.sh | |
- name: push | |
run: | | |
git config --global user.name "github-actions" | |
git config --global user.email "" | |
git add . | |
git diff-index --quiet HEAD || git commit -m "periodic update" | |
git push |