Skip to content

Commit

Permalink
commit awal
Browse files Browse the repository at this point in the history
  • Loading branch information
andifahruddinakas committed Oct 23, 2024
0 parents commit ee0bcfd
Show file tree
Hide file tree
Showing 2,513 changed files with 2,097,712 additions and 0 deletions.
36 changes: 36 additions & 0 deletions .github/workflows/run_node.yml
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
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
/node_modules
10 changes: 10 additions & 0 deletions README.md
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
Loading

0 comments on commit ee0bcfd

Please sign in to comment.