Skip to content
Closed
14 changes: 13 additions & 1 deletion .github/workflows/tweet-develop-push.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,13 +18,25 @@ jobs:
with:
fetch-depth: 2 # 直前のコミットと比較するために2コミット取得

- name: Check if version update commit
- name: Check if should skip tweet
id: check_commit
run: |
# 最新のコミットタイトル(1行目のみ)を取得
COMMIT_TITLE=$(git log -1 --pretty=%s)
echo "Commit title: $COMMIT_TITLE"

# コミット作成者を取得
COMMIT_AUTHOR=$(git log -1 --pretty=%an)
echo "Commit author: $COMMIT_AUTHOR"

# dependabotからのコミットかどうかをチェック
# is_version_update=true でツイートをスキップ(変数名は後方互換性のため維持)
if echo "$COMMIT_AUTHOR" | grep -qE '^dependabot'; then
echo "is_version_update=true" >> "$GITHUB_OUTPUT"
echo "This is a dependabot commit. Skipping tweet."
exit 0
fi

# バージョン更新コミットかどうかをチェック(vX.X.X形式のみ)
if echo "$COMMIT_TITLE" | grep -qE '^v[0-9]+\.[0-9]+\.[0-9]+$'; then
echo "is_version_update=true" >> "$GITHUB_OUTPUT"
Expand Down
4 changes: 4 additions & 0 deletions src/catalog/missions.json
Original file line number Diff line number Diff line change
Expand Up @@ -279,6 +279,10 @@
"title": "決戦支援任務(イベント)",
"time": 1800000
},
"301": {
"title": "前衛支援任務(イベント海域)",
"time": 900000
},
"-1": {
"title": "DEBUG: 今すぐのやつ",
"time": 0
Expand Down
Loading