テスト・QA関連ブログRSSというページを運用しています。

運用といっても、JSONファイルをいじるくらいで、普段は定期的にGitHub Actionsが動いて自動で更新してくれています。が、これが失敗しはじめていました。

エラーを見てみたところ、以下のような内容。

Error: This request has been automatically failed because it uses a deprecated version of actions/cache: v2. Please update your workflow to use v3/v4 of actions/cache to avoid interruptions. Learn more: https://github.blog/changelog/2024-12-05-notice-of-upcoming-releases-and-breaking-changes-for-github-actions/#actions-cache-v1-v2-and-actions-toolkit-cache-package-closing-down

ワークフローで使っているactions/cacheのバージョンがもう非推奨だよ、ということだったので対応します。

対応

単純に、actions/cache@v2actions/cache@v4に変更。

- name: Cache feed images
  uses: actions/cache@v4
  with:
    path: .cache
    key: ${{ runner.os }}-feed-images-${{ steps.get-date.outputs.date }}

on test-qa-rss-feed/.github/workflows/generate-feed.yml at main · YoshikiIto/test-qa-rss-feed

一旦はこれで動くようになりました。

そもそも論として・・・

fork元であるyamadashy/tech-blog-rss-feed: 企業のテックブログの更新をまとめたRSSフィードを配信側の変更を定期的に取り込んでおけという話・・・

Image from Gyazo

fork後の変更がたまりまくっていて、適用すると何かしら壊れそうですね・・・まとまった時間がとれるタイミングでキレイにしようと思います。