Skip to content

Deno

Deno #4390

Workflow file for this run

# This workflow uses actions that are not certified by GitHub.
# They are provided by a third-party and are governed by
# separate terms of service, privacy policy, and support
# documentation.
# This workflow will install Deno then run `deno lint` and `deno test`.
# For more information see: https://github.com/denoland/setup-deno
name: Deno
permissions:
contents: write
on:
push:
branches: ["master"]
pull_request:
branches: ["master"]
schedule:
- cron: "0 * * * *"
jobs:
build:
runs-on: ubuntu-latest
env:
TZ: Asia/Shanghai
steps:
- name: Setup repo
uses: actions/checkout@v3
- name: Setup Deno
uses: denoland/setup-deno@9db7f66e8e16b5699a514448ce994936c63f0d54
with:
deno-version: v1.x
- name: Run deno
run: |
git config --local user.email "[email protected]"
git config --local user.name "typeofNaN"
git remote set-url origin https://${{ github.actor }}:${{ secrets.ACTIONS_TOKEN }}@github.com/${{ github.repository }}
git pull --rebase
deno run --unstable --allow-net --allow-read --allow-write --importmap=import_map.json mod.ts
git add .
git commit -m "get data by github actions"
git push
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}