Skip to content

Commit

Permalink
Add 第${latest}回 prefix to title
Browse files Browse the repository at this point in the history
  • Loading branch information
hoshinotsuyoshi committed Sep 3, 2021
1 parent 5be0fcb commit 8031b10
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions .github/workflows/create_meeting_record.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}

0 comments on commit 8031b10

Please sign in to comment.