commit-report-tool/.github/workflows/daily-report.yml
2026-04-03 19:31:32 +09:00

32 lines
1020 B
YAML
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

name: Daily Commit Report
on:
schedule:
# - cron: '0 22 * * *' # 毎日7:00 JST有効にするにはコメントを外す
workflow_dispatch:
inputs:
debug:
description: 'デバッグモード(テスト用チャンネルに投稿)'
required: false
default: false
type: boolean
target_date:
description: '対象日YYYY-MM-DD、省略時は前日'
required: false
default: ''
type: string
jobs:
report:
uses: ./.github/workflows/report-job.yml
with:
project_name: your-project
config_file: configs/projects/your-project.yml
debug_channel: ${{ github.event.inputs.debug == 'true' && 'YOUR_DEBUG_CHANNEL_ID' || '' }}
target_date: ${{ github.event.inputs.target_date }}
secrets:
ANTHROPIC_API_KEY: ${{ secrets.ANTHROPIC_API_KEY }}
GH_TOKEN: ${{ secrets.GH_TOKEN }}
SLACK_BOT_TOKEN: ${{ secrets.SLACK_BOT_TOKEN }}
SLACK_CHANNEL: ${{ secrets.SLACK_CHANNEL }}