Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .envrc
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
source_up
use node 20.19.4
use node v24
8 changes: 4 additions & 4 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,17 +15,17 @@ jobs:
runs-on: ${{ matrix.os }}
steps:
- name: Checkout
uses: actions/checkout@v4
uses: actions/checkout@v6
- name: Setup Node.js
uses: actions/setup-node@v4
uses: actions/setup-node@v6
with:
node-version: "20.x"
node-version: "24.x"
- name: Install Yarn
run: npm install -g yarn
- name: Get yarn cache directory path
id: yarn-cache-dir-path
run: echo "::set-output name=dir::$(yarn cache dir)"
- uses: actions/cache@v3
- uses: actions/cache@v5
id: yarn-cache
with:
path: ${{ steps.yarn-cache-dir-path.outputs.dir }}
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/lookup-only.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jobs:
runs-on: ${{ matrix.os }}
steps:
- name: Checkout
uses: actions/checkout@v4
uses: actions/checkout@v6
- name: Generate files in working directory
shell: bash
run: src/create-cache-files.sh ${{ runner.os }} test-cache
Expand Down Expand Up @@ -46,7 +46,7 @@ jobs:
runs-on: ${{ matrix.os }}
steps:
- name: Checkout
uses: actions/checkout@v4
uses: actions/checkout@v6
- name: Lookup cache
id: lookup
uses: ./
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/test-env.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jobs:
runs-on: ${{ matrix.os }}
steps:
- name: Checkout
uses: actions/checkout@v4
uses: actions/checkout@v6
- name: Generate files in working directory
shell: bash
run: src/create-cache-files.sh ${{ runner.os }} test-cache
Expand Down Expand Up @@ -47,7 +47,7 @@ jobs:
runs-on: ${{ matrix.os }}
steps:
- name: Checkout
uses: actions/checkout@v4
uses: actions/checkout@v6
- name: Restore cache
uses: ./
env:
Expand Down
14 changes: 7 additions & 7 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jobs:
runs-on: ${{ matrix.os }}
steps:
- name: Checkout
uses: actions/checkout@v4
uses: actions/checkout@v6
- name: Generate files in working directory
shell: bash
run: src/create-cache-files.sh ${{ runner.os }} test-cache
Expand Down Expand Up @@ -44,7 +44,7 @@ jobs:
runs-on: ${{ matrix.os }}
steps:
- name: Checkout
uses: actions/checkout@v4
uses: actions/checkout@v6
- name: Restore cache
uses: ./
with:
Expand Down Expand Up @@ -73,7 +73,7 @@ jobs:
runs-on: ${{ matrix.os }}
steps:
- name: Checkout
uses: actions/checkout@v4
uses: actions/checkout@v6
- name: Restore cache
uses: ./
with:
Expand Down Expand Up @@ -102,7 +102,7 @@ jobs:
runs-on: ${{ matrix.os }}
steps:
- name: Checkout
uses: actions/checkout@v4
uses: actions/checkout@v6
- name: Generate files in working directory
shell: bash
run: src/create-cache-files.sh ${{ runner.os }} test-cache
Expand Down Expand Up @@ -133,7 +133,7 @@ jobs:
runs-on: ${{ matrix.os }}
steps:
- name: Checkout
uses: actions/checkout@v4
uses: actions/checkout@v6
- name: Restore cache with retry enabled
uses: ./
with:
Expand Down Expand Up @@ -163,7 +163,7 @@ jobs:
runs-on: ${{ matrix.os }}
steps:
- name: Checkout
uses: actions/checkout@v4
uses: actions/checkout@v6
- name: Generate files in working directory
shell: bash
run: src/create-cache-files.sh ${{ runner.os }} test-cache
Expand Down Expand Up @@ -192,7 +192,7 @@ jobs:
runs-on: ${{ matrix.os }}
steps:
- name: Checkout
uses: actions/checkout@v4
uses: actions/checkout@v6
- name: Restore cache
uses: ./restore/
with:
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

This action enables caching dependencies to s3 compatible storage, e.g. minio, AWS S3

It also has github [actions/cache@v2](https://github.com/actions/cache) fallback if s3 save & restore fails
It also has github [actions/cache@v5](https://github.com/actions/cache) fallback if s3 save & restore fails

## Usage

Expand Down Expand Up @@ -114,7 +114,7 @@ To check if cache hits and size is not zero without downloading:

## Restore keys

`restore-keys` works similar to how github's `@actions/cache@v2` works: It search each item in `restore-keys`
`restore-keys` works similar to how github's `@actions/cache@v5` works: It search each item in `restore-keys`
as prefix in object names and use the latest one

## Amazon S3 permissions
Expand Down
4 changes: 2 additions & 2 deletions action.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: "s3 cache"
author: tespkg
description: "S3 actions cache with actions/cache@v2 passthrough"
description: "S3 actions cache with actions/cache@v5 passthrough"
inputs:
endpoint:
description: "s3 / minio endpoint, see: https://docs.min.io/docs/javascript-client-api-reference.html"
Expand Down Expand Up @@ -66,7 +66,7 @@ outputs:
cache-size:
description: "A integer value denoting the size of the cache object found (measured in bytes)"
runs:
using: node20
using: node24
main: "dist/restore/index.js"
post: "dist/save/index.js"
post-if: "success()"
Expand Down
4 changes: 2 additions & 2 deletions restore/action.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: "s3 cache"
author: tespkg
description: "S3 actions cache with actions/cache@v2 passthrough"
description: "S3 actions cache with actions/cache@v5 passthrough"
inputs:
endpoint:
description: "s3 / minio endpoint, see: https://docs.min.io/docs/javascript-client-api-reference.html"
Expand Down Expand Up @@ -66,7 +66,7 @@ outputs:
cache-size:
description: "A integer value denoting the size of the cache object found (measured in bytes)"
runs:
using: node20
using: node24
main: "../dist/restore/index.js"
branding:
icon: "archive"
Expand Down
4 changes: 2 additions & 2 deletions save/action.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: "s3 cache"
author: tespkg
description: "S3 actions cache with actions/cache@v2 passthrough"
description: "S3 actions cache with actions/cache@v5 passthrough"
inputs:
endpoint:
description: "s3 / minio endpoint, see: https://docs.min.io/docs/javascript-client-api-reference.html"
Expand Down Expand Up @@ -54,7 +54,7 @@ inputs:
# required: false
# default: -n
runs:
using: node20
using: node24
main: "../dist/saveOnly/index.js"
branding:
icon: "archive"
Expand Down
Loading