Update Subscribes #4743
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 Subscribes | |
on: | |
workflow_dispatch: | |
schedule: | |
- cron: '0 */3 * * *' | |
jobs: | |
Update: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout Code | |
uses: actions/checkout@v2 | |
- name: Setup Timezone | |
run: sudo timedatectl set-timezone 'Asia/Shanghai' | |
- name: Update Subscribe | |
run: | | |
bash test.sh | |
- name: Make Some Difference | |
run: | | |
echo "$(date '+%Y-%m-%d %H:%M:%S')" > .timestamp | |
- name: Commit Changes | |
run: | | |
git config core.ignorecase false | |
git config --local user.email "github-actions[bot]@users.noreply.github.com" | |
git config --local user.name "github-actions[bot]" | |
git add . | |
git commit -m "Updated at $(date '+%Y-%m-%d %H:%M:%S')" | |
git push |