Skip to content

Commit

Permalink
adding telegram function
Browse files Browse the repository at this point in the history
  • Loading branch information
deniganda committed Sep 19, 2024
1 parent 7fea0ff commit fda1db0
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,13 +27,17 @@ jobs:
GOOGLE_SHEET_KEY_JSON: ${{ secrets.GOOGLE_SHEET_KEY_JSON }}
API_URL_PEN: ${{ secrets.API_URL_PEN }}
SPREADSHEET_ID: ${{ secrets.SPREADSHEET_ID }}
TELEGRAM_BOT_TOKEN: ${{ secrets.TELEGRAM_BOT_TOKEN }} # Add Telegram Bot token
TELEGRAM_CHAT_ID: ${{ secrets.TELEGRAM_CHAT_ID }} # Add Telegram Chat 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 }}
TELEGRAM_BOT_TOKEN: ${{ secrets.TELEGRAM_BOT_TOKEN }} # Add Telegram Bot token
TELEGRAM_CHAT_ID: ${{ secrets.TELEGRAM_CHAT_ID }} # Add Telegram Chat ID

- name: Run Instansi Satker Node.js script
run: node InstansiSatker.js # Replace with the path to your first script
Expand Down Expand Up @@ -83,6 +87,8 @@ jobs:
GOOGLE_SHEET_KEY_JSON: ${{ secrets.GOOGLE_SHEET_KEY_JSON }}
API_URL_EP: ${{ secrets.API_URL_EP }}
SPREADSHEET_ID: ${{ secrets.SPREADSHEET_ID }} # Add if needed
TELEGRAM_BOT_TOKEN: ${{ secrets.TELEGRAM_BOT_TOKEN }} # Add Telegram Bot token
TELEGRAM_CHAT_ID: ${{ secrets.TELEGRAM_CHAT_ID }} # Add Telegram Chat ID

- name: Run E-Purchasing Produk Detail Node.js script
run: node E-Purchasing_ProD.js # Replace with the path to your second script
Expand Down

0 comments on commit fda1db0

Please sign in to comment.