Skip to content

Commit e951b4e

Browse files
committed
Clean slate
1 parent 5549fd5 commit e951b4e

33 files changed

+4240
-1
lines changed

.github/linters/.markdown-lint.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
comment: Relaxed rules
2+
default: true
3+
line_length: false

.github/workflows/javascript.yml

Lines changed: 99 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,99 @@
1+
name: Sheet to Json Workflow
2+
3+
on:
4+
# schedule:
5+
# # every 20 minutes the job will run
6+
# - cron: "*/15 * * * *"
7+
# push:
8+
# branches:
9+
# - master
10+
repository_dispatch:
11+
types: [my-event]
12+
13+
jobs:
14+
update-json-data:
15+
runs-on: ubuntu-latest
16+
timeout-minutes: 19
17+
18+
steps:
19+
- uses: actions/checkout@v2
20+
- run: |
21+
git fetch --no-tags --prune --depth=1 origin +refs/heads/*:refs/remotes/origin/*
22+
- name: Cache node modules
23+
uses: actions/cache@v1
24+
env:
25+
cache-name: cache-node-modules
26+
with:
27+
path: ~/.npm # npm cache files are stored in `~/.npm` on Linux/macOS
28+
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/package-lock.json') }}
29+
restore-keys: |
30+
${{ runner.os }}-build-${{ env.cache-name }}-
31+
${{ runner.os }}-build-
32+
${{ runner.os }}-
33+
34+
- name: Install Dependencies
35+
run: npm install
36+
37+
- name: push
38+
run: |
39+
bash ./main.sh 2>> /tmp/apidata_err
40+
echo "the job completed"
41+
env:
42+
GITHUB_TOKEN: ${{ secrets.github_token }}
43+
SHEET_ID_v1: ${{ secrets.SHEET_ID_v1 }}
44+
SHEET_ID_v2: ${{ secrets.SHEET_ID_v2 }}
45+
SHEET_ID_v3: ${{ secrets.SHEET_ID_v3 }}
46+
SHEET_ID_v4: ${{ secrets.SHEET_ID_v4 }}
47+
SHEET_ID_v5: ${{ secrets.SHEET_ID_v5 }}
48+
SHEET_ID_v6: ${{ secrets.SHEET_ID_v6 }}
49+
SHEET_ID_v7: ${{ secrets.SHEET_ID_v7 }}
50+
SHEET_ID_v8: ${{ secrets.SHEET_ID_v8 }}
51+
SHEET_ID_v9: ${{ secrets.SHEET_ID_v9 }}
52+
SHEET_ID_v10: ${{ secrets.SHEET_ID_v10 }}
53+
SHEET_ID_v11: ${{ secrets.SHEET_ID_v11 }}
54+
SHEET_ID_v12: ${{ secrets.SHEET_ID_v12 }}
55+
SHEET_ID_v13: ${{ secrets.SHEET_ID_v13 }}
56+
SHEET_ID_v14: ${{ secrets.SHEET_ID_v14 }}
57+
SHEET_ID_v15: ${{ secrets.SHEET_ID_v15 }}
58+
SHEET_ID_v16: ${{ secrets.SHEET_ID_v16 }}
59+
SHEET_ID_v17: ${{ secrets.SHEET_ID_v17 }}
60+
SHEET_ID_v18: ${{ secrets.SHEET_ID_v18 }}
61+
SHEET_ID_v19: ${{ secrets.SHEET_ID_v19 }}
62+
SHEET_ID_v20: ${{ secrets.SHEET_ID_v20 }}
63+
SHEET_ID_v21: ${{ secrets.SHEET_ID_v21 }}
64+
SHEET_ID_v22: ${{ secrets.SHEET_ID_v22 }}
65+
SHEET_ID_v23: ${{ secrets.SHEET_ID_v23 }}
66+
SHEET_ID_v24: ${{ secrets.SHEET_ID_v24 }}
67+
SHEET_ID_v25: ${{ secrets.SHEET_ID_v25 }}
68+
SHEET_ID_v26: ${{ secrets.SHEET_ID_v26 }}
69+
SHEET_ID_v27: ${{ secrets.SHEET_ID_v27 }}
70+
SHEET_ID_v28: ${{ secrets.SHEET_ID_v28 }}
71+
SHEET_ID_v29: ${{ secrets.SHEET_ID_v29 }}
72+
SHEET_ID_v30: ${{ secrets.SHEET_ID_v30 }}
73+
SHEET_ID_v31: ${{ secrets.SHEET_ID_v31 }}
74+
SHEET_ID_v32: ${{ secrets.SHEET_ID_v32 }}
75+
RESOURCES_SHEET_ID: ${{ secrets.RESOURCES_SHEET_ID }}
76+
SHEET_LOCALE: ${{ secrets.SHEET_LOCALE }}
77+
STUCK_BOT: ${{ secrets.STUCK_BOT }}
78+
- name: show job status
79+
if: always()
80+
run: |
81+
git checkout master
82+
node lib/notify_tg.js $status
83+
env:
84+
status: ${{job.status}}
85+
STUCK_BOT: ${{ secrets.STUCK_BOT }}
86+
GITHUB_TOKEN: ${{ secrets.github_token }}
87+
- name: Repository Dispatch
88+
if: always() # ${{ !cancelled() }}
89+
uses: actions/github-script@v2
90+
with:
91+
github-token: ${{secrets.JUN_TOKEN2}}
92+
script: |
93+
const fs = require('fs');
94+
await github.repos.createDispatchEvent({
95+
owner: context.repo.owner,
96+
repo: context.repo.repo,
97+
event_type: "my-event",
98+
client_payload: { greeting: "I'm Mr Meeseek. Loot at me!" }
99+
});

.gitignore

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
# Build and Release Folders
2+
bin-debug/
3+
bin-release/
4+
[Oo]bj/
5+
[Bb]in/
6+
7+
# Other files and folders
8+
.settings/
9+
10+
# Executables
11+
*.swf
12+
*.air
13+
*.ipa
14+
*.apk
15+
16+
# Project files, i.e. `.project`, `.actionScriptProperties` and `.flexProperties`
17+
# should NOT be excluded as they contain compiler settings and other important
18+
# information for Eclipse / Flash Builder.
19+
#
20+
#
21+
22+
# Logs
23+
logs
24+
*.log
25+
npm-debug.log*
26+
yarn-debug.log*
27+
yarn-error.log*
28+
29+
# Dependency directories
30+
node_modules/
31+
jspm_packages/
32+
33+
venv/
34+
tmp/
35+
.vscode
36+
37+
# Vim
38+
*.swp
39+
*.swo
40+
41+
# Debug script
42+
fetch.sh

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# Changelog
2+
3+
===========

CNAME

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
api.covid19india.org

LICENSE_CODE

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
MIT License
2+
3+
Copyright (c) 2020 covid19india
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy
6+
of this software and associated documentation files (the "Software"), to deal
7+
in the Software without restriction, including without limitation the rights
8+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9+
copies of the Software, and to permit persons to whom the Software is
10+
furnished to do so, subject to the following conditions:
11+
12+
The above copyright notice and this permission notice shall be included in all
13+
copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21+
SOFTWARE.

0 commit comments

Comments
 (0)