From 8d746f09e2808a6e250393fde3d471d7cf53a047 Mon Sep 17 00:00:00 2001 From: peaceiris <30958501+peaceiris@users.noreply.github.com> Date: Mon, 12 Jul 2021 02:22:39 +0900 Subject: [PATCH] docs: Add concurrency --- README.md | 24 ++++++++++++++++++------ 1 file changed, 18 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index df6ba1a..287ca7d 100644 --- a/README.md +++ b/README.md @@ -78,6 +78,9 @@ on: - main # Set a branch to deploy pull_request: +concurrency: + group: ${{ github.workflow }}-${{ github.ref }} + jobs: deploy: runs-on: ubuntu-18.04 @@ -90,7 +93,7 @@ jobs: - name: Setup Hugo uses: peaceiris/actions-hugo@v2 with: - hugo-version: '0.83.1' + hugo-version: '0.85.0' # extended: true - name: Build @@ -120,7 +123,7 @@ Set `extended: true` to use a Hugo extended version. - name: Setup Hugo uses: peaceiris/actions-hugo@v2 with: - hugo-version: '0.83.1' + hugo-version: '0.85.0' extended: true ``` @@ -173,7 +176,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.83.1 +HUGO_VERSION=0.85.0 ``` Next, add a step to read a Hugo version from the `.env` file. @@ -241,6 +244,9 @@ on: - main # Set a branch to deploy pull_request: +concurrency: + group: ${{ github.workflow }}-${{ github.ref }} + jobs: deploy: runs-on: ubuntu-18.04 @@ -253,7 +259,7 @@ jobs: - name: Setup Hugo uses: peaceiris/actions-hugo@v2 with: - hugo-version: '0.83.1' + hugo-version: '0.85.0' extended: true - name: Setup Node @@ -296,6 +302,9 @@ on: - main # Set a branch to deploy pull_request: +concurrency: + group: ${{ github.workflow }}-${{ github.ref }} + jobs: deploy: runs-on: ubuntu-18.04 @@ -308,7 +317,7 @@ jobs: - name: Setup Hugo uses: peaceiris/actions-hugo@v2 with: - hugo-version: '0.83.1' + hugo-version: '0.85.0' extended: true - name: Setup Ruby @@ -346,6 +355,9 @@ on: branches: - main +concurrency: + group: ${{ github.workflow }}-${{ github.ref }} + jobs: deploy: runs-on: ubuntu-18.04 @@ -360,7 +372,7 @@ jobs: - name: Setup Hugo uses: peaceiris/actions-hugo@v2 with: - hugo-version: '0.83.1' + hugo-version: '0.85.0' ```