Skip to content
This repository was archived by the owner on Sep 23, 2025. It is now read-only.

バイナリサーチを使用して目標値に到達する日付を効率的に特定するロジックを追加 #15

バイナリサーチを使用して目標値に到達する日付を効率的に特定するロジックを追加

バイナリサーチを使用して目標値に到達する日付を効率的に特定するロジックを追加 #15

Workflow file for this run

name: Update and Restart Service
on:
push:
branches:
- main # mainブランチが更新されたときに実行
jobs:
update-and-restart:
runs-on: self-hosted
steps:
# リポジトリのディレクトリに移動して更新
- name: Pull latest changes
run: |
cd /home/adminpi/Swiftly-bot
if [ -d ".git" ]; then
git reset --hard
git pull origin main
else
git clone https://github.com/techfish-11/Swiftly-bot.git /home/adminpi/Swiftly-bot
fi
# systemdサービスを再起動
- name: Restart systemd service
run: |
sudo systemctl restart swiftly-bot.service