-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit ee0bcfd
Showing
2,513 changed files
with
2,097,712 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
name: Run Node.js and Commit Results | ||
|
||
on: | ||
push: | ||
branches: | ||
- main # Sesuaikan dengan branch yang Anda gunakan | ||
|
||
jobs: | ||
run-and-commit: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
# Step 1: Checkout repository | ||
- name: Checkout repository | ||
uses: actions/checkout@v3 | ||
|
||
# Step 2: Setup Node.js environment | ||
- name: Setup Node.js | ||
uses: actions/setup-node@v3 | ||
with: | ||
node-version: '18' # Sesuaikan versi Node.js jika diperlukan | ||
|
||
# Step 3: Install dependencies | ||
- name: Install dependencies | ||
run: npm install | ||
|
||
# Step 4: Jalankan perintah yang diperlukan | ||
- name: Run Node script | ||
run: node index.js test.csv | ||
|
||
# Step 5: Commit and push changes | ||
- name: Commit and Push changes | ||
uses: stefanzweifel/git-auto-commit-action@v4 | ||
with: | ||
commit_message: "Commit generated files from Node script" | ||
branch: main # Sesuaikan dengan branch yang Anda gunakan |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
/node_modules |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
Sumber Data : https://idm.kemendesa.go.id/open/api/desa/rumusan/[kode_desa]/[tahun] | ||
|
||
## Cara Menggunakan | ||
|
||
1. **Tanpa argumen** (menggunakan `desa.csv` sebagai default): | ||
```bash | ||
node index.js | ||
2. **Dengan file CSV lain yang berada di folder data/** | ||
```bash | ||
node index.js [file_excel].csv |
Oops, something went wrong.