-
Notifications
You must be signed in to change notification settings - Fork 0
40 lines (34 loc) · 1.18 KB
/
generate-monthly-reports.yml
File metadata and controls
40 lines (34 loc) · 1.18 KB
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
name: Generate monthly reports
on:
schedule:
- cron: '0 0 1 * *' # Triggers at midnight on the 1st of every month.
workflow_dispatch:
inputs:
start-date:
description: 'Start date (YYYY-MM-DD)'
required: true
end-date:
description: 'End date (YYYY-MM-DD)'
required: true
env:
KOSLI_ORG: "${{ vars.KOSLI_ORG }}"
KOSLI_API_TOKEN: "${{ secrets.KOSLI_PUBLIC_API_TOKEN }}"
KOSLI_CLI_VERSION: "${{ vars.KOSLI_CLI_VERSION }}"
jobs:
generate-reports:
name: Generate periodic reports
runs-on: ubuntu-latest
outputs:
result-jira-pr-csv-file: ${{ steps.generate-periodic-reports.outputs.result-jira-pr-csv-file }}
result-jira-pr-artifact-upload-name: ${{ steps.generate-periodic-reports.outputs.result-jira-pr-artifact-upload-name }}
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Generate reports
id: generate-periodic-reports
uses: ./.github/actions/generate-periodic-reports
with:
start-date: ${{ github.event.inputs.start-date }}
end-date: ${{ github.event.inputs.end-date }}
kosli-source-flow: jira-example-source