Skip to content

๐Ÿ‹๏ธโ€โ™€๏ธ GitHub Action for getting Ring Fit Adventure exercise log

Notifications You must be signed in to change notification settings

jiyeonseo/daily-ring-fit-adventure-action

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

3 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

daily-ring-fit-adventure-action

Demo

Usage

ํŠธ์œ„ํ„ฐ ํƒ€์ž„๋ผ์ธ์œผ๋กœ ๊ณต์œ ๋œ ๋งํ• ์–ด๋“œ๋ฒค์ณ ์šด๋™ ๊ธฐ๋ก ์ด๋ฏธ์ง€๋ฅผ ๊ฐ€์ ธ์™€ ๋„ค์ด๋ฒ„ OCR API๋กœ ๊ฒฐ๊ณผ ๋ฐ์ดํ„ฐ ๊ฐ€์ ธ์˜ค๊ธฐ.

Collecting Ring Fit Adventure Exercise logs from Twitter and Extracting the data with Naver OCR API.

name: "ringfit-batch"
on:
  schedule:
    - cron: '0 14 * * *' # UTC (ํ•œ๊ตญ์‹œ๊ฐ„ +9 ํ•ด์ฃผ์–ด์•ผ ํ•ฉ๋‹ˆ๋‹ค)

jobs:
  test:
    runs-on: ubuntu-latest
    steps:
    - uses: actions/checkout@v2
    - uses: ./
      with:
        naver_ocr_url: ${{ secrets.NAVER_OCR_URL }}
        naver_secret_key: ${{ secrets.NAVER_OCR_SECRET }}
        twt_id: "seojeee"
        twt_consumer_key: ${{ secrets.TWT_CONSUMER_KEY }}
        twt_consumer_secret: ${{ secrets.TWT_CONSUMER_SECRET }}
        github_access_token : ${{ secrets.GH_ACCESS_TOKEN }}

Inputs

  • naver_ocr_url : ๋„ค์ด๋ฒ„ OCR ์ฝ˜์†”์—์„œ ์ œ๊ณตํ•˜๋Š” url (๋งํฌ)

  • naver_secret_key : ๋„ค์ด๋ฒ„ OCR ์ฝ˜์†”์—์„œ ์ œ๊ณตํ•˜๋Š” secret key (๋งํฌ)

  • twt_id : ์šด๋™ ๊ฒฐ๊ณผ ์ด๋ฏธ์ง€๋ฅผ ์˜ฌ๋ฆด ํŠธ์œ„ํ„ฐ ์•„์ด๋””

  • twt_consumer_key : ํŠธ์œ„ํ„ฐ API ์‚ฌ์šฉ์„ ์œ„ํ•œ consumer key (๋งํฌ)

  • twt_consumer_secret : ํŠธ์œ„ํ„ฐ API ์‚ฌ์šฉ์„ ์œ„ํ•œ consumer secret (๋งํฌ)

  • github_access_token : ๊นƒํ—™ clone, push๋ฅผ ํ•˜๊ธฐ ์œ„ํ•œ access token (๋งํฌ)

Install (local)

Install the dependencies

npm install 

Run prepare

npm run prepare 

/dist/ folder have to be added for the GitHub Actions

git add dist

About

๐Ÿ‹๏ธโ€โ™€๏ธ GitHub Action for getting Ring Fit Adventure exercise log

Resources

Stars

Watchers

Forks