Create Meeting Record issue #131
This file contains 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: 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 }} |