-
Notifications
You must be signed in to change notification settings - Fork 3
134 lines (113 loc) · 5.86 KB
/
main.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
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)
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 Instansi Satker Node.js script
run: node InstansiSatker.js # Replace with the path to your first script
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
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
env:
GOOGLE_SHEET_KEY_JSON: ${{ secrets.GOOGLE_SHEET_KEY_JSON }}
API_URL_TS: ${{ secrets.API_URL_TSN }}
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 E-Purchasing Produk Detail Node.js script
run: node E-Purchasing_ProD.js # Replace with the path to your second script
env:
GOOGLE_SHEET_KEY_JSON: ${{ secrets.GOOGLE_SHEET_KEY_JSON }}
API_URL_EP_PROD: ${{ secrets.API_URL_EP_PROD }}
SPREADSHEET_ID: ${{ secrets.SPREADSHEET_ID }} # Add if needed
- name: Run E-Purchasing Penyedia Detail Node.js script
run: node E-Purchasing_PenD.js # Replace with the path to your second script
env:
GOOGLE_SHEET_KEY_JSON: ${{ secrets.GOOGLE_SHEET_KEY_JSON }}
API_URL_EP_PEND: ${{ secrets.API_URL_EP_PEND }}
SPREADSHEET_ID: ${{ secrets.SPREADSHEET_ID }} # Add if needed
- name: Run E-Purchasing Komoditas Detail Node.js script
run: node E-Purchasing_KomD.js # Replace with the path to your second script
env:
GOOGLE_SHEET_KEY_JSON: ${{ secrets.GOOGLE_SHEET_KEY_JSON }}
API_URL_EP_KOMD: ${{ secrets.API_URL_EP_KOMD }}
SPREADSHEET_ID: ${{ secrets.SPREADSHEET_ID }} # Add if needed
- name: Run E-Purchasing Distributor Detail Node.js script
run: node E-Purchasing_DisD.js # Replace with the path to your second script
env:
GOOGLE_SHEET_KEY_JSON: ${{ secrets.GOOGLE_SHEET_KEY_JSON }}
API_URL_EP_DISD: ${{ secrets.API_URL_EP_DISD }}
SPREADSHEET_ID: ${{ secrets.SPREADSHEET_ID }} # Add if needed
- name: Run E-Purchasing User PP Detail Node.js script
run: node E-Purchasing_KomD.js # Replace with the path to your second script
env:
GOOGLE_SHEET_KEY_JSON: ${{ secrets.GOOGLE_SHEET_KEY_JSON }}
API_URL_EP_USERPP: ${{ secrets.API_URL_EP_USERPP }}
SPREADSHEET_ID: ${{ secrets.SPREADSHEET_ID }} # Add if needed
- name: Run E-Purchasing User PPK Detail Node.js script
run: node E-Purchasing_KomD.js # Replace with the path to your second script
env:
GOOGLE_SHEET_KEY_JSON: ${{ secrets.GOOGLE_SHEET_KEY_JSON }}
API_URL_EP_USERPP: ${{ secrets.API_URL_EP_USERPPK }}
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