Skip to content

Commit

Permalink
Update README
Browse files Browse the repository at this point in the history
  • Loading branch information
emafazillah committed Mar 31, 2020
1 parent 5be2704 commit 00597c1
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 19 deletions.
23 changes: 6 additions & 17 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions action.yml
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
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'
required: true
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'

0 comments on commit 00597c1

Please sign in to comment.