ํธ์ํฐ ํ์๋ผ์ธ์ผ๋ก ๊ณต์ ๋ ๋งํ ์ด๋๋ฒค์ณ ์ด๋ ๊ธฐ๋ก ์ด๋ฏธ์ง๋ฅผ ๊ฐ์ ธ์ ๋ค์ด๋ฒ 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 }}
-
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 the dependencies
npm install
Run prepare
npm run prepare
/dist/
folder have to be added for the GitHub Actions
git add dist