LoginSignup
3
0

More than 1 year has passed since last update.

Github Actionsで詳細なログを出力する(ACTIONS_RUNNER_DEBUGとACTIONS_STEP_DEBUG)

Last updated at Posted at 2023-01-27

必要な設定

早速結論ですが、Secretで下記2つの設定をtrueにします。これら2つを設定することで、デバッグログを出力して、実行の詳細を記録することができます

ACTIONS_RUNNER_DEBUG

Runnerの実行ログ

ACTIONS_STEP_DEBUG

Step毎の実行ログ

※ Managing workflow runs(ドキュメント)
https://docs.github.com/en/actions/managing-workflow-runs

設定手順

詳細なログを出力したいRepositoryで、Settingタブをクリックします
image.png
左のメニューから「Secret and Variables」をクリックすると、「Actions」が出てくるので、こちらをクリックします
image.png
画面左上に表示されている緑色のボタン「New repository secret」をクリックします
image.png
下記画像のように「Name」に「ACTIONS_RUNNER_DEBUG」、「Secret」に「true」を入れます。そのあとは「Add secret」をクリックし、追加します

「ACTIONS_STEP_DEBUG」についても同様の操作を行います
image.png

これで設定は完了です

3
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
3
0