2020-11-29 03:11:35 +08:00
|
|
|
name: schedule
|
|
|
|
|
|
|
|
on:
|
|
|
|
schedule:
|
|
|
|
- cron: "0 * * * *"
|
|
|
|
|
|
|
|
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: |
|
2022-03-10 13:18:50 +08:00
|
|
|
git config --local user.email "bot@github.com"
|
|
|
|
git config --local user.name "bot"
|
2020-11-29 03:11:35 +08:00
|
|
|
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
|