Skip to content

Commit

Permalink
Merge pull request #39 from taga3s/feature/scheduled-create-issue-for…
Browse files Browse the repository at this point in the history
…-weekly-blog

Add GHA workflow
  • Loading branch information
taga3s authored Nov 8, 2024
2 parents f531ef4 + 0636123 commit 4bce091
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions .github/workflows/scheduled-create-issue-for-weekly-blog.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name: Scheduled Create Issue For Weekly Blog

on:
workflow_dispatch:
schedule:
- cron: '0 0 * * 1'

env:
GITHUB_TOKEN: ${{ github.token }}

jobs:
create_issue:
name: Create Issue
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Get the publication date
env:
TZ: 'Asia/Tokyo'
run: echo "PUBLICATION_DATE=$(date '+%Y-%m-%d' --date 'next sunday')" >> $GITHUB_ENV
- name: Create Issue
run: |
gh issue create \
--title "週報作成 ${{ env.PUBLICATION_DATE }}"

0 comments on commit 4bce091

Please sign in to comment.