Skip to content

code4fukui/MixSoda-util

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

MixSoda-util

utilities for MixSoda

backup yesterday data

deno run -A https://code4fukui.github.io/MixSoda-util/backup.js [Store Token] (all)

to make iccid/all.csv

deno run -A https://code4fukui.github.io/MixSoda-util/makeBackupAll.js

setup

mkdir .github
mkdir .github/workflows
cat > .github/workflows/scheduled-backup.yml
name: Scheduled 

on:
  schedule:
    # 1:31分に実行 1(JST)-9+24=16(UTC)
    - cron: '31 16 * * *'

jobs:
  build:
    name: build
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v2
      - uses: denoland/setup-deno@v1
        with:
          deno-version: v1.x
      - name: make
        env:
          SECRET_TOKEN: ${{ secrets.token }}
        run: |
          deno run -A https://code4fukui.github.io/MixSoda-util/backup.js $SECRET_TOKEN
      - name: commit and push
        run: |
          git config --global user.email "workflow@example.com"
          git config --global user.name "workflow user"
          git add .
          git commit -m 'update data' && git push ${REPO} HEAD:${{github.event.pull_request.head.ref}} || true
          git push

set secret code (Encrypted secrets - GitHub Docs)

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages