update #28
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: 'update' | |
on: | |
push: | |
schedule: | |
- cron: '0 1 1 * *' | |
jobs: | |
run_bash: | |
runs-on: ubuntu-latest | |
steps: | |
- name: 'Checkout codes' | |
uses: actions/checkout@v2 | |
- name: 'run the script' | |
run: bash ./cron/ip.sh | |
- name: 'Commit' | |
run: | | |
git config --global user.email [email protected] | |
git config --global user.name lmc999 | |
git add . | |
git commit -m"update on:`date`" | |
- name: 'Push changes' | |
uses: ad-m/github-push-action@master | |
with: | |
github_token: ${{ secrets.GITHUB_TOKEN }} |