🍇

セルフホストランナーは自動アップデートされる

2021/06/05に公開1

GitHub Actions のセルフホストランナーは実行中に自動アップデートされるようです。

√ Connected to GitHub

2021-06-04 21:01:17Z: Listening for Jobs
Runner update in progress, do not shutdown runner.
Downloading 2.278.0 runner
Waiting for current job finish running.
Generate and execute update script.
Runner will exit shortly for update, should back online within 10 seconds.
Runner listener exited with error code 3
Runner listener exit because of updating, re-launch runner in 5 seconds.
Starting Runner listener with startup type: service
Started listener process

√ Connected to GitHub

2021-06-04 21:03:51Z: Listening for Jobs

ランナーのコードとしてはこのあたり。
https://github.com/actions/runner/blob/d4cdb633db046f3ec5da048feba940c3a8d606a6/src/Runner.Listener/SelfUpdater.cs