From 00597c1e439dcd53b79e2c843e5aee73e13a7e08 Mon Sep 17 00:00:00 2001 From: emafazillah Date: Tue, 31 Mar 2020 13:20:18 +0800 Subject: [PATCH] Update README --- README.md | 23 ++++++----------------- action.yml | 4 ++-- 2 files changed, 8 insertions(+), 19 deletions(-) diff --git a/README.md b/README.md index e85c064..58e16a7 100644 --- a/README.md +++ b/README.md @@ -3,31 +3,20 @@ Get Covid-19 Update by country. Data from 2019 Novel Coronavirus COVID-19 (2019-nCoV) Data Repository by Johns Hopkins CSSE, https://github.com/CSSEGISandData/COVID-19. Update will be sent via Telegram. ## Example Usage +Update `send-message.yml` as below; ```YAML -on: - push: - schedule: +... - cron: '0 12 * * *' -jobs: - bot: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v1 - - name: 'Install node' - uses: actions/setup-node@v1 - - name: 'Install NPM dependencies' - run: npm install - - name: 'Run code' - run: node index.js +... env: TELEGRAM_CHAT_ID: ${{ secrets.TELEGRAM_CHAT_ID }} TELEGRAM_TOKEN: ${{ secrets.TELEGRAM_TOKEN }} - URL: 'https://raw.githubusercontent.com/CSSEGISandData/COVID-19/master/csse_covid_19_data/csse_covid_19_daily_reports/' - CSV: '.csv' +... COUNTRY: 'Malaysia' ``` -## Country + +## List of Countries Country | :---| Afghanistan diff --git a/action.yml b/action.yml index ad879bd..b887851 100644 --- a/action.yml +++ b/action.yml @@ -1,5 +1,5 @@ name: 'GitHub Action for COVID-19 Updates' -description: 'Get Malaysian Covid-19 Updates. Data from 2019 Novel Coronavirus COVID-19 (2019-nCoV) Data Repository by Johns Hopkins CSSE.' +description: 'Get Covid-19 Update by country. Data from 2019 Novel Coronavirus COVID-19 (2019-nCoV) Data Repository by Johns Hopkins CSSE.' inputs: who-to-greet: # id of input description: 'Yesterday date' @@ -7,7 +7,7 @@ inputs: default: 'Yesterday date' outputs: time: # id of output - description: 'COVID-19 Updates on confirmed, deaths, recovered and active.' + description: 'COVID-19 Update on confirmed, deaths, recovered and active.' runs: using: 'node12' main: 'index.js' \ No newline at end of file