From 8031b1022bd038f94bf6022e7b76a500a606d10f Mon Sep 17 00:00:00 2001 From: Tsuyoshi Hoshino Date: Fri, 20 Aug 2021 18:26:16 +0900 Subject: [PATCH] =?UTF-8?q?Add=20`=E7=AC=AC${latest}=E5=9B=9E`=20prefix=20?= =?UTF-8?q?to=20title?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/create_meeting_record.yaml | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/.github/workflows/create_meeting_record.yaml b/.github/workflows/create_meeting_record.yaml index 6898473..5581a61 100644 --- a/.github/workflows/create_meeting_record.yaml +++ b/.github/workflows/create_meeting_record.yaml @@ -5,12 +5,15 @@ on: - cron: '0 4 * * fri' # workflow_dispatch: jobs: - create_nippo: + create_issue: runs-on: ubuntu-latest timeout-minutes: 10 steps: - uses: actions/checkout@v2 - name: Create a new issue - run: gh issue create --title "雑談会ログ - `date '+%Y/%m/%d'`" --body "今週の雑談会のログです:memo:" + 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 }}