gh issue create --body "本文に/analyzeを含める"
実行時に以下のエラーが発生:
/bin/bash: line XX: /analyze: No such file or directory
bashが /analyze
をコマンドとして解釈しようとするため。
cat > issue_body.md << 'EOF'
## 概要
テスト用Issue
/analyze
EOF
gh issue create --title "タイトル" --body-file issue_body.md
BODY=$(echo -e "## 概要\nテスト用Issue\n\n/analyze")
gh issue create --title "タイトル" --body "$BODY"
gh api repos/{owner}/{repo}/issues \
--method POST \
--field title="タイトル" \
--field body="本文に/analyzeを含める"
secrets:
GITHUB_TOKEN:
required: false
でエラー:secret name GITHUB_TOKEN within workflow_call can not be used
GITHUB_TOKEN
は予約語なので、secrets
セクションから削除し、github.token
を直接使用:
github-token: $