mirror of
https://github.com/huqi-pr/trending-in-one.git
synced 2024-11-17 13:58:28 +08:00
31 lines
769 B
YAML
31 lines
769 B
YAML
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: |
|
|
git config --local user.email "bot@github.com"
|
|
git config --local user.name "bot"
|
|
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
|