schedule #167800
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: schedule | |
on: | |
schedule: | |
# NOTE: 间隔 5 分钟执行一次 | |
- cron: "*/5 * * * *" | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
env: | |
TZ: Asia/Shanghai | |
steps: | |
- name: Clone repository | |
uses: actions/checkout@v2 | |
- name: Install deno | |
uses: denolib/setup-deno@master | |
- name: Run deno | |
run: | | |
git config --local user.email "EMAIL" | |
git config --local user.name "USER_NAME" | |
git remote set-url origin https://${{ github.actor }}:${{ secrets.GITHUB_TOKEN }}@github.com/${{ github.repository }} | |
git pull --rebase | |
deno run --unstable --allow-net --allow-read --allow-write --import-map=import_map.json mod.ts | |
git add . | |
git commit -m "-update by github action;" | |
git push |