Daily write - Central Stats to excel sheet #369
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: Dashboard Extractor | |
run-name: Daily write - Central Stats to excel sheet | |
on: | |
workflow_dispatch: | |
schedule: | |
- cron: '30 18 * * *' # 00:00 in LK time (GMT+5:30) | |
jobs: | |
daily-central-stats-build: | |
name: Write Central Stats | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: ballerina-platform/setup-ballerina@v1 | |
name: Install Ballerina | |
with: | |
version: 2201.8.4 | |
- run: bal version | |
- name: Run Script | |
working-directory: ./central_stats/ | |
env: | |
BCENTRAL_SPREADSHEET_CLIENT_ID: ${{secrets.BCENTRAL_SPREADSHEET_CLIENT_ID}} | |
BCENTRAL_SPREADSHEET_CLIENT_SECRET: ${{secrets.BCENTRAL_SPREADSHEET_CLIENT_SECRET}} | |
BCENTRAL_SPREADSHEET_REFRESH_TOKEN: ${{secrets.BCENTRAL_SPREADSHEET_REFRESH_TOKEN}} | |
BCENTRAL_SPREADSHEET_ID: ${{secrets.BCENTRAL_SPREADSHEET_ID}} | |
AZURE_BCENTRAL_APP_ID: ${{ secrets.AZURE_BCENTRAL_APP_ID }} | |
AZURE_BCENTRAL_API_KEY: ${{secrets.AZURE_BCENTRAL_API_KEY}} | |
run: bal run |