ci: bump checkout to v4 (#639)

This commit is contained in:
Andreas Deininger 2023-10-05 02:17:20 +02:00 committed by GitHub
parent c0084b0763
commit aadc3a98df
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
9 changed files with 19 additions and 19 deletions

View file

@ -10,7 +10,7 @@ jobs:
CodeQL-Build:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Initialize CodeQL
uses: github/codeql-action/init@v2

View file

@ -12,5 +12,5 @@ jobs:
dependency-review:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- uses: actions/dependency-review-action@v3

View file

@ -25,7 +25,7 @@ jobs:
dev-image-test:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- run: make build
- run: make cirun cmd="npm ci"
# - run: make ciall

View file

@ -14,7 +14,7 @@ jobs:
comment:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
ref: main

View file

@ -9,7 +9,7 @@ jobs:
release:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Dump GitHub context
env:

View file

@ -23,7 +23,7 @@ jobs:
- true
- false
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Setup Hugo
uses: peaceiris/actions-hugo@v2.6.0

View file

@ -22,7 +22,7 @@ jobs:
- 'macos-latest'
- 'windows-latest'
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Read .nvmrc
run: echo "::set-output name=NVMRC::$(cat .nvmrc)"

View file

@ -8,7 +8,7 @@ jobs:
update:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Update major tag
run: |

View file

@ -85,7 +85,7 @@ jobs:
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
submodules: true # Fetch Hugo themes (true OR recursive)
fetch-depth: 0 # Fetch all history for .GitInfo and .Lastmod
@ -93,7 +93,7 @@ jobs:
- name: Setup Hugo
uses: peaceiris/actions-hugo@v2
with:
hugo-version: '0.117.0'
hugo-version: '0.119.0'
# extended: true
- name: Build
@ -123,7 +123,7 @@ Set `extended: true` to use a Hugo extended version.
- name: Setup Hugo
uses: peaceiris/actions-hugo@v2
with:
hugo-version: '0.117.0'
hugo-version: '0.119.0'
extended: true
```
@ -151,7 +151,7 @@ This action fetches the latest version of Hugo by [hugo | Homebrew Formulae](htt
### ⭐️ Caching Hugo Modules
Insert a cache step before site-building as follows.
Note that the cache dir location of Hugo on a Linux-based operating system is `/tmp/hugo_cache`. On macOS, `${TMPDIR}/hugo_cache` has the location.
Note that with latest hugo version, the [cache dir location](https://gohugo.io/getting-started/configuration/#configure-cachedir) on a Linux-based operating system is `${HOME}/.cache`. On macOS, `${HOME}/Library/Caches` has the location.
```yaml
- uses: actions/cache@v3
@ -177,7 +177,7 @@ How to sync a Hugo version between a Docker Compose and a GitHub Actions workflo
Write a `HUGO_VERSION` to the `.env` file like the following and push it to a remote branch.
```sh
HUGO_VERSION=0.117.0
HUGO_VERSION=0.119.0
```
Next, add a step to read a Hugo version from the `.env` file.
@ -251,14 +251,14 @@ jobs:
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@4
with:
fetch-depth: 0 # Fetch all history for .GitInfo and .Lastmod
- name: Setup Hugo
uses: peaceiris/actions-hugo@v2
with:
hugo-version: '0.117.0'
hugo-version: '0.119.0'
extended: true
- name: Setup Node
@ -305,7 +305,7 @@ jobs:
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
submodules: true # Fetch Hugo themes (true OR recursive)
fetch-depth: 0 # Fetch all history for .GitInfo and .Lastmod
@ -313,7 +313,7 @@ jobs:
- name: Setup Hugo
uses: peaceiris/actions-hugo@v2
with:
hugo-version: '0.117.0'
hugo-version: '0.119.0'
extended: true
- name: Setup Ruby
@ -357,7 +357,7 @@ jobs:
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
fetch-depth: 0
@ -367,7 +367,7 @@ jobs:
- name: Setup Hugo
uses: peaceiris/actions-hugo@v2
with:
hugo-version: '0.117.0'
hugo-version: '0.119.0'
```
<div align="right">