Skip to content

Commit

Permalink
Merge pull request #44 from shari-sushi/auto_gnenerate_issue
Browse files Browse the repository at this point in the history
github_tokenの取得方法修正, 環境変数setに環境変数ファイルを使用
  • Loading branch information
shari-sushi authored Jul 13, 2024
2 parents d474db0 + 09dec92 commit 905d8af
Showing 1 changed file with 12 additions and 5 deletions.
17 changes: 12 additions & 5 deletions .github/workflows/create_regular_mtg_issue.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ on:
schedule:
# https://pubs.opengroup.org/onlinepubs/9699919799/utilities/crontab.html#tag_20_25_07
# - cron: '0 9 * * 1' # At 18:00 on Monday(JST).
- cron: '20 17 * * 6' # At 2:20 on sun(JST). // 最初の動作確認用
- cron: '55 17 * * 6' # At 2:20 on sun(JST). // 最初の動作確認用
- cron: '0 1 * * 0' # At 10:00 on sun(JST).
- cron: '0 10 * * *' # At 19:00 on everyday(JST).

Expand All @@ -15,15 +15,17 @@ jobs:
steps:
- name: Get date time in JST
id: date
run: |
echo "::set-output name=now::$(date "+%m/%d")"
run : |
run: echo "NOW=$(date +'%Y-%m-%d')" >> $GITHUB_ENV
- name: Create an issue
uses: actions-ecosystem/action-create-issue@v1
with:
github_token: ${{ secrets.github_token }}
github_token: ${{ secrets.GITHUB_TOKEN }}
# github_token: $ {{ secrets.github_token }}
title: '【${{ steps.date.outputs.now }} (火)】定例'
body: |
自動生成された定例MTGのissueです
自動生成された定期MTG用のissueです
labels: |
documentation
# ↓みたいな方法もあるぽい
Expand All @@ -34,4 +36,9 @@ jobs:
# 全体の参考
# https://qiita.com/mziyut/items/34435e9cb3fd76e7e86f
# - .mdのテンプレは使って無いね
# set-outputは非推奨どころか削除予定って2022年に告知されてるのに
# The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files.
# https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
# run: |
# echo "::set-output name=now::$(date "+%m/%d")"

0 comments on commit 905d8af

Please sign in to comment.