└── .github └── workflows └── create_meeting_record.yaml /.github/workflows/create_meeting_record.yaml: -------------------------------------------------------------------------------- 1 | name: Create Meeting Record issue 2 | on: 3 | schedule: 4 | # 毎週月曜日 10:00 JST 5 | - cron: '0 1 * * mon' 6 | workflow_dispatch: 7 | jobs: 8 | create_issue: 9 | runs-on: ubuntu-latest 10 | timeout-minutes: 10 11 | steps: 12 | - uses: actions/checkout@v2 13 | - name: Create a new issue 14 | run: | 15 | latest=$(gh issue list --jq '.[].title' --json title --search "雑談会 sort:created-desc" --limit 10 | grep 回 | grep -oE '[0-9]+' | head -1) 16 | latest=$(($latest+1)) 17 | gh issue create --title "第${latest}回 雑談会ログ - `date --date '+4 days' '+%Y/%m/%d'`" --body "今週の雑談会のログです:memo:" 18 | env: 19 | GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} 20 | --------------------------------------------------------------------------------