EOD Report Generator #9
This file contains hidden or 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: EOD Report Generator | |
| on: | |
| workflow_dispatch: | |
| inputs: | |
| MAIN_REVIEWER: | |
| description: "The GitHub user ID of the primary reviewer whose approval is required for the PR." | |
| required: true | |
| default: "sharadregoti" | |
| START_DATE: | |
| description: "The start date of report (e.g., 2025-02-21T00:00:00.000Z)." | |
| required: true | |
| END_DATE: | |
| description: "The end date of report. Defaults to the current date (e.g., 2025-02-25T00:00:00.000Z)." | |
| required: false | |
| jobs: | |
| run-script: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v4 | |
| - name: Setup Node.js | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: '20' # Change to your required version | |
| - name: Install dependencies | |
| run: | | |
| cd scripts/eod-report-generator | |
| npm install | |
| - name: Run script | |
| run: | | |
| cd scripts/eod-report-generator | |
| node index.js | |
| env: | |
| MAIN_REVIEWER: ${{ inputs.MAIN_REVIEWER }} | |
| START_DATE: ${{ inputs.START_DATE }} | |
| END_DATE: ${{ inputs.END_DATE }} | |
| GITHUB_TOKEN: ${{ secrets.TYK_SCRIPTS_TOKEN }} # GitHub Token for API calls | |
| ANTHROPIC_KEY: ${{ secrets.ANTHROPIC_KEY }} # Org key already available |