Skip to content

feat: thử đẩy user_data lên #3

feat: thử đẩy user_data lên

feat: thử đẩy user_data lên #3

name: Chạy định kỳ
on:
push:
workflow_dispatch:
schedule:
# - cron: "0 0 * * 0" # Mỗi tuần
- cron: "0 0 * * *" # Mỗi nửa đêm
jobs:
cron:
name: Chạy chương trình
runs-on: ubuntu-latest
steps:
- name: Clone repo
uses: actions/checkout@v4
- name: Cài Deno
uses: denoland/setup-deno@v2
with:
deno-version: vx.x.x
- name: Cài Chrome
run: npx puppeteer browsers install chrome
# - name: Giải mã credentials
# env:
# GOOGLE_API_PASSWORD: ${{ secrets.GOOGLE_API_PASSWORD }}
# run: |
# cd Code\ hỗ\ trợ/Google\ Calendar/
# gpg --batch --yes --decrypt --passphrase="$GOOGLE_API_PASSWORD" --output credentials.json credentials.json.gpg
# gpg --batch --yes --decrypt --passphrase="$GOOGLE_API_PASSWORD" --output token.json token.json.gpg
# cd ../..
- name: Chạy chương trình
run: deno task start