feat: thử đẩy user_data lên #3
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: 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 |