Skip to content

Commit

Permalink
fix: action versions in readmes
Browse files Browse the repository at this point in the history
  • Loading branch information
deemp committed Mar 5, 2024
1 parent 315aacd commit 821f1fa
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 14 deletions.
16 changes: 8 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -391,11 +391,11 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Cache Primes
id: cache-primes
uses: actions/cache@v3
uses: actions/cache@v4
with:
primary-key: ${{ runner.os }}-primes
paths: prime-numbers
Expand All @@ -422,7 +422,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Restore cached Primes
id: cache-primes-restore
Expand Down Expand Up @@ -528,7 +528,7 @@ Example:

```yaml
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- uses: nix-community/cache-nix-action@v5
id: cache
Expand Down Expand Up @@ -559,7 +559,7 @@ jobs:
build-linux:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Cache Primes
id: cache-primes
Expand All @@ -586,7 +586,7 @@ jobs:
build-windows:
runs-on: windows-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Cache Primes
id: cache-primes
Expand Down Expand Up @@ -618,7 +618,7 @@ A cache today is immutable and cannot be updated. But some use cases require the

```yaml
- name: update cache on every commit
uses: actions/cache@v3
uses: actions/cache@v4
with:
primary-key: primes-${{ runner.os }}
paths: prime-numbers
Expand Down Expand Up @@ -659,7 +659,7 @@ jobs:
contents: read
steps:
- name: Check out code
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Cleanup
run: |
Expand Down
8 changes: 4 additions & 4 deletions restore/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ If you are using separate jobs to create and save your cache(s) to be reused by

```yaml
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4

- uses: actions/cache/restore@v3
id: cache
Expand Down Expand Up @@ -82,7 +82,7 @@ In case of multi-module projects, where the built artifact of one project needs

```yaml
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Build
run: /build-parent-module.sh
Expand All @@ -98,7 +98,7 @@ steps:

```yaml
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- uses: actions/cache/restore@v3
id: cache
Expand All @@ -125,7 +125,7 @@ To fail if there is no cache hit for the primary key, leave `restore-keys` empty

```yaml
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- uses: actions/cache/restore@v3
id: cache
Expand Down
4 changes: 2 additions & 2 deletions save/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ If you are using separate jobs for generating common artifacts and sharing them

```yaml
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4

- name: Install Dependencies
run: /install.sh
Expand Down Expand Up @@ -93,7 +93,7 @@ There are instances where some flaky test cases would fail the entire workflow a

```yaml
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
.
. // restore if need be
.
Expand Down

0 comments on commit 821f1fa

Please sign in to comment.