Daily Node.js Script #5
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 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 NonTender_Selesai.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 NonTender_Selesai.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 |