Skip to content

Commit

Permalink
Merge pull request #26 from Dodai-Dodai/run-executable
Browse files Browse the repository at this point in the history
実行ファイルの動作
  • Loading branch information
Dodai-Dodai authored Apr 2, 2024
2 parents 2e322cc + 0de57fa commit c00559e
Showing 1 changed file with 27 additions and 0 deletions.
27 changes: 27 additions & 0 deletions .github/workflows/run-executable.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: Run Executable Daily

on:
schedule:
- cron: '30 22 * * *' # 前日の22時30分 (UTC)、日本時間で午前7時30分
- cron: '45 15 * * *' # 前日の15時45分 (UTC)、日本時間で午後0時45分
- cron: '0 20 * * *' # 前日の20時 (UTC)、日本時間で午後5時
- cron: '0 23 * * *' # 前日の23時 (UTC)、日本時間で午後8時
workflow_dispatch:

jobs:
run-executable:
runs-on: ubuntu-latest
steps:
- name: Checkout exec branch
uses: actions/checkout@v3
with:
ref: exec # execブランチを指定

- name: Set up permissions
run: chmod +x ./main

- name: Run executable
env:
URL: ${{ secrets.URL }} # 環境変数URLをSecretsから取得
TOKEN: ${{ secrets.TOKEN }} # 環境変数TOKENをSecretsから取得
run: ./main

0 comments on commit c00559e

Please sign in to comment.