Skip to content

Commit

Permalink
Update main.yml
Browse files Browse the repository at this point in the history
update to run very 2 hours
  • Loading branch information
deniganda authored Dec 12, 2024
1 parent 0f630f3 commit b37992b
Showing 1 changed file with 22 additions and 22 deletions.
44 changes: 22 additions & 22 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,105 +2,105 @@ name: Daily Node.js Script

on:
schedule:
- cron: '0 23 * * *' # Runs every day at 11 PM UTC, which is 6 AM GMT+7 (Asia/Jakarta)
- cron: '0 0,2,4,6,8,10,12,14,16 * * *' # Every 2 hours from 7 AM to 4 PM GMT+7 (Asia/Jakarta)
workflow_dispatch: # Allows manual triggering

jobs:
build:
runs-on: ubuntu-latest

steps:
- name: Checkout code
uses: actions/checkout@v3

- name: Set up Node.js
uses: actions/setup-node@v3
with:
node-version: '16' # Specify your Node.js version here

- name: Install dependencies
run: npm install

- name: Run Penyedia Node.js script
run: node Penyedia_Terumumkan_TahunLama.js # Replace with the path to your first script
run: node Penyedia_Terumumkan_TahunLama.js
env:
GOOGLE_SHEET_KEY_JSON: ${{ secrets.GOOGLE_SHEET_KEY_JSON }}
API_URL_PEN: ${{ secrets.API_URL_PENLM }}
SPREADSHEET_ID: ${{ secrets.SPREADSHEET_ID }}

- name: Run Penyedia Node.js script
run: node Penyedia_Terumumkan_TahunBaru.js # Replace with the path to your first script
run: node Penyedia_Terumumkan_TahunBaru.js
env:
GOOGLE_SHEET_KEY_JSON: ${{ secrets.GOOGLE_SHEET_KEY_JSON }}
API_URL_PEN: ${{ secrets.API_URL_PENBR }}
SPREADSHEET_ID: ${{ secrets.SPREADSHEET_ID }}

- name: Run Swakelola Node.js script
run: node Swakelola_Terumumkan.js # Replace with the path to your first script
run: node Swakelola_Terumumkan.js
env:
GOOGLE_SHEET_KEY_JSON: ${{ secrets.GOOGLE_SHEET_KEY_JSON }}
API_URL_SWA: ${{ secrets.API_URL_SWA }}
SPREADSHEET_ID: ${{ secrets.SPREADSHEET_ID }}

- name: Run Instansi Satker Node.js script
run: node InstansiSatker.js # Replace with the path to your first script
run: node InstansiSatker.js
env:
GOOGLE_SHEET_KEY_JSON: ${{ secrets.GOOGLE_SHEET_KEY_JSON }}
API_URL_IS: ${{ secrets.API_URL_IS }}
SPREADSHEET_ID: ${{ secrets.SPREADSHEET_ID }}

- name: Run Tender Selesai Node.js script
run: node Tender_Selesai.js # Replace with the path to your first script
run: node Tender_Selesai.js
env:
GOOGLE_SHEET_KEY_JSON: ${{ secrets.GOOGLE_SHEET_KEY_JSON }}
API_URL_TS: ${{ secrets.API_URL_TS }}
SPREADSHEET_ID: ${{ secrets.SPREADSHEET_ID }}

- name: Run Tender Selesai Nilai Node.js script
run: node Tender_Selesai_Nilai.js # Replace with the path to your first script
run: node Tender_Selesai_Nilai.js
env:
GOOGLE_SHEET_KEY_JSON: ${{ secrets.GOOGLE_SHEET_KEY_JSON }}
API_URL_TSN: ${{ secrets.API_URL_TSN }}
SPREADSHEET_ID: ${{ secrets.SPREADSHEET_ID }}

- name: Run Tender Selesai Pengumuman Node.js script
run: node Tender_Selesai_Pengumuman.js # Replace with the path to your first script
run: node Tender_Selesai_Pengumuman.js
env:
GOOGLE_SHEET_KEY_JSON: ${{ secrets.GOOGLE_SHEET_KEY_JSON }}
API_URL_TSP: ${{ secrets.API_URL_TSP }}
SPREADSHEET_ID: ${{ secrets.SPREADSHEET_ID }}

- name: Run Non Tender Selesai Node.js script
run: node NonTender_Selesai.js # Replace with the path to your second script
run: node NonTender_Selesai.js
env:
GOOGLE_SHEET_KEY_JSON: ${{ secrets.GOOGLE_SHEET_KEY_JSON }}
API_URL_NTS: ${{ secrets.API_URL_NTS }}
SPREADSHEET_ID: ${{ secrets.SPREADSHEET_ID }} # Add if needed
SPREADSHEET_ID: ${{ secrets.SPREADSHEET_ID }}

- name: Run Pencatatan Non Tender Node.js script
run: node Pencatatan_NonTender.js # Replace with the path to your second script
run: node Pencatatan_NonTender.js
env:
GOOGLE_SHEET_KEY_JSON: ${{ secrets.GOOGLE_SHEET_KEY_JSON }}
API_URL_PNT: ${{ secrets.API_URL_PNT }}
SPREADSHEET_ID: ${{ secrets.SPREADSHEET_ID }} # Add if needed
SPREADSHEET_ID: ${{ secrets.SPREADSHEET_ID }}

- name: Run Pencatatan Swakelola Node.js script
run: node Pencatatan_Swakelola.js # Replace with the path to your second script
run: node Pencatatan_Swakelola.js
env:
GOOGLE_SHEET_KEY_JSON: ${{ secrets.GOOGLE_SHEET_KEY_JSON }}
API_URL_PS: ${{ secrets.API_URL_PS }}
SPREADSHEET_ID: ${{ secrets.SPREADSHEET_ID }} # Add if needed
SPREADSHEET_ID: ${{ secrets.SPREADSHEET_ID }}

- name: Run E-Purchasing Node.js script
run: node E-Purchasing.js # Replace with the path to your second script
run: node E-Purchasing.js
env:
GOOGLE_SHEET_KEY_JSON: ${{ secrets.GOOGLE_SHEET_KEY_JSON }}
API_URL_EP: ${{ secrets.API_URL_EP }}
SPREADSHEET_ID: ${{ secrets.SPREADSHEET_ID }} # Add if needed
SPREADSHEET_ID: ${{ secrets.SPREADSHEET_ID }}

- name: Run TokoDaring Node.js script
run: node TokoDaring.js # Replace with the path to your second script
run: node TokoDaring.js
env:
GOOGLE_SHEET_KEY_JSON: ${{ secrets.GOOGLE_SHEET_KEY_JSON }}
API_URL_TD: ${{ secrets.API_URL_TD }}
SPREADSHEET_ID: ${{ secrets.SPREADSHEET_ID }} # Add if needed
SPREADSHEET_ID: ${{ secrets.SPREADSHEET_ID }}

0 comments on commit b37992b

Please sign in to comment.