Daily Node.js Script #11
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
name: Daily Node.js Script | |
on: | |
schedule: | |
- cron: '0 6 * * *' # Runs every day at 6 AM UTC | |
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.js # Replace with the path to your first script | |
env: | |
GOOGLE_SHEET_KEY_JSON: ${{ secrets.GOOGLE_SHEET_KEY_JSON }} | |
API_URL_PEN: ${{ secrets.API_URL_PEN }} | |
SPREADSHEET_ID: ${{ secrets.SPREADSHEET_ID }} | |
- name: Run Swakelola Node.js script | |
run: node Swakelola_Terumumkan.js # Replace with the path to your first script | |
env: | |
GOOGLE_SHEET_KEY_JSON: ${{ secrets.GOOGLE_SHEET_KEY_JSON }} | |
API_URL_SWA: ${{ secrets.API_URL_SWA }} | |
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 | |
env: | |
GOOGLE_SHEET_KEY_JSON: ${{ secrets.GOOGLE_SHEET_KEY_JSON }} | |
API_URL_TS: ${{ secrets.API_URL_TS }} | |
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 | |
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 | |
- name: Run Pencatatan Non Tender Node.js script | |
run: node Pencatatan_NonTender.js # Replace with the path to your second script | |
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 | |
- name: Run Pencatatan Swakelola Node.js script | |
run: node Pencatatan_Swakelola.js # Replace with the path to your second script | |
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 | |
- name: Run E-Purchasing Node.js script | |
run: node E-Purchasing.js # Replace with the path to your second script | |
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 | |
- name: Run TokoDaring Node.js script | |
run: node TokoDaring.js # Replace with the path to your second script | |
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 |