fix(コミネコ): schedule YAMLバグを修正しREADMEを更新

Made-with: Cursor
This commit is contained in:
hiroki ito
2026-04-03 21:58:42 +09:00
parent c872debe4b
commit f5eac097b2
6 changed files with 133 additions and 48 deletions
+2 -8
View File
@@ -1,20 +1,15 @@
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
# schedule:
# - cron: '0 22 * * *' # 毎日7:00 JST(有効にするにはコメントを外す)
jobs:
report:
@@ -22,7 +17,6 @@ jobs:
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 }}
+3 -8
View File
@@ -11,11 +11,6 @@ on:
description: '設定ファイルパス'
required: true
type: string
debug_channel:
description: 'デバッグ用チャンネルID(指定時はこちらに投稿)'
required: false
type: string
default: ''
target_date:
description: '対象日(YYYY-MM-DD形式、省略時は前日)'
required: false
@@ -82,7 +77,7 @@ jobs:
env:
GH_TOKEN: ${{ secrets.GH_TOKEN }}
SLACK_BOT_TOKEN: ${{ secrets.SLACK_BOT_TOKEN }}
SLACK_CHANNEL: ${{ inputs.debug_channel != '' && inputs.debug_channel || secrets.SLACK_CHANNEL }}
SLACK_CHANNEL: ${{ secrets.SLACK_CHANNEL }}
TARGET_DATE: ${{ inputs.target_date }}
- name: Notify failure to Slack
@@ -112,9 +107,9 @@ jobs:
-H "Authorization: Bearer $SLACK_BOT_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"channel": "'"${SLACK_CHANNEL:-YOUR_DEBUG_CHANNEL_ID}"'",
"channel": "'"${SLACK_CHANNEL}"'",
"text": ":x: *コミネコ エラー発生*\n\nプロジェクト: ${{ inputs.project_name }}\n失敗箇所: '"$FAILED_STEP"'\nワークフロー実行: <${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}|詳細を確認>"
}'
env:
SLACK_BOT_TOKEN: ${{ secrets.SLACK_BOT_TOKEN }}
SLACK_CHANNEL: ${{ inputs.debug_channel != '' && inputs.debug_channel || secrets.SLACK_CHANNEL }}
SLACK_CHANNEL: ${{ secrets.SLACK_CHANNEL }}