diff --git a/.github/workflows/codeql-analysis.yml b/.github/workflows/codeql-analysis.yml index 8aa90cf..f5bfa0a 100644 --- a/.github/workflows/codeql-analysis.yml +++ b/.github/workflows/codeql-analysis.yml @@ -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 diff --git a/.github/workflows/dependency-review.yml b/.github/workflows/dependency-review.yml index 9fa2b0a..bbf8088 100644 --- a/.github/workflows/dependency-review.yml +++ b/.github/workflows/dependency-review.yml @@ -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 diff --git a/.github/workflows/dev-image.yml b/.github/workflows/dev-image.yml index bf62abb..c7b10cf 100644 --- a/.github/workflows/dev-image.yml +++ b/.github/workflows/dev-image.yml @@ -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 diff --git a/.github/workflows/label-commenter.yml b/.github/workflows/label-commenter.yml index 4243162..a99466e 100644 --- a/.github/workflows/label-commenter.yml +++ b/.github/workflows/label-commenter.yml @@ -14,7 +14,7 @@ jobs: comment: runs-on: ubuntu-22.04 steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 with: ref: main diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index c8e59ba..690049e 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -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: diff --git a/.github/workflows/test-action.yml b/.github/workflows/test-action.yml index 23cf9b4..eeae154 100644 --- a/.github/workflows/test-action.yml +++ b/.github/workflows/test-action.yml @@ -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 diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 6068eeb..a61b1f0 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -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)" diff --git a/.github/workflows/update-major-tag.yml b/.github/workflows/update-major-tag.yml index 41c7b7a..8a9f250 100644 --- a/.github/workflows/update-major-tag.yml +++ b/.github/workflows/update-major-tag.yml @@ -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: | diff --git a/README.md b/README.md index de64565..407439f 100644 --- a/README.md +++ b/README.md @@ -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' ```