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