Skip to content

Create Meeting Record issue #136

Create Meeting Record issue

Create Meeting Record issue #136

name: Create Meeting Record issue
on:
schedule:
# 毎週月曜日 10:00 JST
- cron: '0 1 * * mon'
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 --date '+4 days' '+%Y/%m/%d'`" --body "今週の雑談会のログです:memo:"
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}