Skip to content

[Improve]: actions/cache を v4.2.2 から v5.0.5 にアップデートする #641

@YumNumm

Description

@YumNumm

背景

GitHub Actions で利用している actions/cache を v4 系から v5 系へ更新する。

現在、workflow で actions/cache v4.2.2 が利用されている。pinact run -u --min-age 7 の結果、更新先は v5.0.5 となる。

対象

  • actions/cache v4.2.2 -> v5.0.5

参考

Changelog

actions/cache v5.0.0

[!IMPORTANT]
actions/cache@v5 runs on the Node.js 24 runtime and requires a minimum Actions Runner version of 2.327.1.

If you are using self-hosted runners, ensure they are updated before upgrading.


What's Changed

Full Changelog: actions/cache@v4.3.0...v5.0.0

https://github.com/actions/cache/releases/tag/v5.0.0 より引用

actions/cache v5.0.5

What's Changed

Full Changelog: actions/cache@v5...v5.0.5

https://github.com/actions/cache/releases/tag/v5.0.5 より引用

主な変更点

  • v5.0.0 で action runtime が Node.js 24 に更新された。
  • self-hosted runner を使う場合は Actions Runner v2.327.1 以上が必要。

対応方針

  • actions/cache を利用している workflow を v5.0.5 に更新する。
  • 既存の cache key / restore-keys / path 設定は維持する。
  • build runner cache の restore / save が PR 上で成功することを確認する。

完了条件

  • pinact により actions/cachev5.0.5 に更新されている。
  • pinact run --verify が成功する。
  • cache restore / save を行う workflow が PR 上で成功する。

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions