0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

GitHub Actionsのワークフローで、ファイルを生成してリポジトリにコミット・プッシュ

Posted at

yaml

  - name: Commit and push changes
    run: |
      git config --global user.name "GitHub Actions"
      git config --global user.email "actions@github.com"

リポジトリの設定を確認

リポジトリの設定にアクセスし、Settings > Actions > General に移動します。
Workflow permissions のセクションで、Read and write permissions が選択されていることを確認します。

タイムゾーンの指定

ローカルとリモートで取得するデータの時間帯が異なる場合はtokyoを指定する。
ex)yfinance

import datetime as dt
import pytz

タイムゾーンを指定
timezone = pytz.timezone('Asia/Tokyo')
dt_now = dt.datetime.now(timezone)
print(f"Current time in timezone Asia/Tokyo: {dt_now}")
0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?