Skip to content

Create Meeting Record issue #125

Create Meeting Record issue

Create Meeting Record issue #125

name: Create Meeting Record issue
on:
schedule:
# 毎週金曜 13:00 JST
- cron: '0 4 * * fri'
# workflow_dispatch:
jobs:
create_issue:
runs-on: ubuntu-latest
timeout-minutes: 10
steps:
- uses: actions/checkout@v2
- name: Create a new issue
run: |
latest=$(gh issue list --jq '.[].title' --json title --search "雑談会 sort:created-desc" --limit 10 | grep 回 | grep -oE '[0-9]+' | head -1)
latest=$(($latest+1))
gh issue create --title "第${latest}回 雑談会ログ - `date '+%Y/%m/%d'`" --body "今週の雑談会のログです:memo:"
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}