-
-
Notifications
You must be signed in to change notification settings - Fork 58
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ci(feed): キャッシュの復元と保存はcompositeで再利用する
- Loading branch information
Showing
5 changed files
with
36 additions
and
36 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
name: 'Restore Feed Cache' | ||
|
||
runs: | ||
using: "composite" | ||
steps: | ||
- name: Restore feed cache | ||
uses: actions/cache/restore@v4 | ||
with: | ||
path: | | ||
.cache | ||
public/images/feed-thumbnails | ||
public/images/feed-icons | ||
# キャッシュのキーは毎回変えて保存。restore-keys によって最新が使われる | ||
# see: https://github.com/actions/cache/issues/342#issuecomment-673371329 | ||
key: ${{ runner.os }}-feed-${{ github.run_id }} | ||
restore-keys: | | ||
${{ runner.os }}-feed- |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
name: 'Save Feed Cache' | ||
|
||
runs: | ||
using: "composite" | ||
steps: | ||
- name: Save feed cache | ||
uses: actions/cache/save@v4 | ||
with: | ||
path: | | ||
.cache | ||
public/images/feed-thumbnails | ||
public/images/feed-icons | ||
key: ${{ runner.os }}-feed-${{ github.run_id }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters