fetch bot #11191
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: fetch bot | |
on: | |
push: | |
branches: | |
- main | |
schedule: | |
- cron: "1 * * * 1" # See https://crontab.guru/#0_7,9,11_*_*_1,3 | |
jobs: | |
fetch-bellshadebot: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
with: | |
persist-credentials: false | |
fetch-depth: 0 | |
- name: Modify last update | |
run: | | |
d=`date '+%Y-%m-%dT%H:%M:%SZ'` | |
echo $d > LAST_UPDATED | |
- name: Commit changes | |
run: | | |
git config --local user.email "[email protected]" | |
git config --local user.name "bellshadebot" | |
git remote set-url origin https://x-access-token:${{ secrets.GITHUB_TOKEN }}@github.com/${{ github.repository }} | |
git add -A | |
git commit -am "feat: update fetch" | |
git push | |
# - name: GitHub Push | |
# uses: ad-m/[email protected] | |
# with: | |
# force: true | |
# directory: "." | |
# github_token: ${{ secrets.GITHUB_TOKEN }} |