Skip to content

Commit

Permalink
add month report
Browse files Browse the repository at this point in the history
  • Loading branch information
pasqualespica committed Aug 3, 2024
1 parent aef2318 commit 4d8b4f1
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 1 deletion.
20 changes: 20 additions & 0 deletions .github/workflows/report_ingestion.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,25 @@ on:
type: boolean
default: true

month_report:
required: true
type: choice
description: Select the month report
options:
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
- 10
- 11
- 12
default: '7'

permissions:
id-token: write
contents: read
Expand Down Expand Up @@ -74,6 +93,7 @@ jobs:
shell: bash
run: |
export BIZ_COSMOS_KEY=${{ secrets.BIZ_COSMOS_KEY }}
export MONTH_SELECTED=${{ inputs.month_report}}
cd ./report
chmod +x ./run.sh
Expand Down
4 changes: 3 additions & 1 deletion report/src/utils/report.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,10 @@ report = JSON.parse(reportT);
// console.log(report);

// const months4Year = [7,6,5,4,3,2,1]; // giu'24 to gen'24
const months4Year = [6,5]; // giu'24 to gen'24
const monthSelected = process.env.MONTH_SELECTED || "7";
const months4Year = [monthSelected];

console.log(`MONTH_SELECTED ${MONTH_SELECTED}`)

// [
// { eventStatusCount: 29, eventStatus: 'INGESTED' },
Expand Down

0 comments on commit 4d8b4f1

Please sign in to comment.