geminiで質問例を事前作成 #10
Workflow file for this run
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: Generate Question Examples | |
| on: | |
| pull_request: | |
| branches: [ "main" ] | |
| # paths: | |
| # - 'public/docs/**' | |
| jobs: | |
| question-example: | |
| runs-on: ubuntu-latest | |
| # Push権限を付与 | |
| permissions: | |
| contents: write | |
| steps: | |
| - uses: actions/checkout@v6 | |
| with: | |
| ref: ${{ github.head_ref }} | |
| - uses: actions/setup-node@v4 | |
| with: | |
| node-version: ${{ matrix.node-version }} | |
| cache: 'npm' | |
| - run: npm ci | |
| - run: npx tsx ./scripts/questionExample.ts 4 | |
| env: | |
| API_KEY: ${{ secrets.API_KEY }} | |
| - name: Commit and Push changes | |
| # 前のステップが成功・失敗どちらでも必ず実行 | |
| if: always() | |
| run: | | |
| git config user.name "github-actions[bot]" | |
| git config user.email "41898282+github-actions[bot]@users.noreply.github.com" | |
| git add . | |
| git diff --staged --exit-code || (git commit -m "[ci] generate question examples" && git push) |