From 913377f0522aec60032df5ba927834804c2cdddf Mon Sep 17 00:00:00 2001 From: peaceiris <30958501+peaceiris@users.noreply.github.com> Date: Mon, 12 Jul 2021 10:10:37 +0900 Subject: [PATCH] docs: Improve usage of concurrency --- README.md | 70 ++++++++++++++++++++++--------------------------------- 1 file changed, 28 insertions(+), 42 deletions(-) diff --git a/README.md b/README.md index 5d4d214..943a685 100644 --- a/README.md +++ b/README.md @@ -141,12 +141,11 @@ on: - main # Set a branch name to trigger deployment pull_request: -concurrency: - group: ${{ github.workflow }}-${{ github.ref }} - jobs: deploy: runs-on: ubuntu-20.04 + concurrency: + group: ${{ github.workflow }}-${{ github.ref }} steps: - uses: actions/checkout@v2 with: @@ -478,12 +477,11 @@ on: tags: - 'v*.*.*' -concurrency: - group: ${{ github.workflow }}-${{ github.ref }} - jobs: deploy: runs-on: ubuntu-20.04 + concurrency: + group: ${{ github.workflow }}-${{ github.ref }} steps: - uses: actions/checkout@v2 @@ -608,12 +606,11 @@ on: - cron: "22 22 * * *" workflow_dispatch: -concurrency: - group: ${{ github.workflow }}-${{ github.ref }} - jobs: deploy: runs-on: ubuntu-20.04 + concurrency: + group: ${{ github.workflow }}-${{ github.ref }} steps: ... ``` @@ -649,12 +646,11 @@ on: - main pull_request: -concurrency: - group: ${{ github.workflow }}-${{ github.ref }} - jobs: deploy: runs-on: ubuntu-20.04 + concurrency: + group: ${{ github.workflow }}-${{ github.ref }} steps: - uses: actions/checkout@v2 @@ -698,12 +694,11 @@ on: - main pull_request: -concurrency: - group: ${{ github.workflow }}-${{ github.ref }} - jobs: deploy: runs-on: ubuntu-20.04 + concurrency: + group: ${{ github.workflow }}-${{ github.ref }} steps: - uses: actions/checkout@v2 @@ -751,12 +746,11 @@ on: - main pull_request: -concurrency: - group: ${{ github.workflow }}-${{ github.ref }} - jobs: deploy: runs-on: ubuntu-20.04 + concurrency: + group: ${{ github.workflow }}-${{ github.ref }} steps: - uses: actions/checkout@v2 @@ -807,12 +801,11 @@ on: - main pull_request: -concurrency: - group: ${{ github.workflow }}-${{ github.ref }} - jobs: deploy: runs-on: ubuntu-20.04 + concurrency: + group: ${{ github.workflow }}-${{ github.ref }} steps: - uses: actions/checkout@v2 @@ -861,12 +854,11 @@ on: - 'website/**' pull_request: -concurrency: - group: ${{ github.workflow }}-${{ github.ref }} - jobs: deploy: runs-on: ubuntu-20.04 + concurrency: + group: ${{ github.workflow }}-${{ github.ref }} defaults: run: working-directory: website @@ -920,12 +912,11 @@ on: - main pull_request: -concurrency: - group: ${{ github.workflow }}-${{ github.ref }} - jobs: deploy: runs-on: ubuntu-20.04 + concurrency: + group: ${{ github.workflow }}-${{ github.ref }} steps: - uses: actions/checkout@v2 @@ -981,12 +972,11 @@ on: - main pull_request: -concurrency: - group: ${{ github.workflow }}-${{ github.ref }} - jobs: deploy: runs-on: ubuntu-20.04 + concurrency: + group: ${{ github.workflow }}-${{ github.ref }} steps: - uses: actions/checkout@v2 @@ -1021,12 +1011,11 @@ on: - main pull_request: -concurrency: - group: ${{ github.workflow }}-${{ github.ref }} - jobs: deploy: runs-on: ubuntu-20.04 + concurrency: + group: ${{ github.workflow }}-${{ github.ref }} steps: - uses: actions/checkout@v2 @@ -1066,12 +1055,11 @@ on: - main pull_request: -concurrency: - group: ${{ github.workflow }}-${{ github.ref }} - jobs: deploy: runs-on: ubuntu-20.04 + concurrency: + group: ${{ github.workflow }}-${{ github.ref }} steps: - uses: actions/checkout@v2 @@ -1117,12 +1105,11 @@ on: schedule: - cron: '24 */24 * * *' # Once a day -concurrency: - group: ${{ github.workflow }}-${{ github.ref }} - jobs: deploy: runs-on: ubuntu-20.04 + concurrency: + group: ${{ github.workflow }}-${{ github.ref }} steps: - uses: actions/checkout@v2 - name: Deploy to GitHub Pages @@ -1150,12 +1137,11 @@ on: - main pull_request: -concurrency: - group: ${{ github.workflow }}-${{ github.ref }} - jobs: deploy: runs-on: macos-latest + concurrency: + group: ${{ github.workflow }}-${{ github.ref }} steps: - uses: actions/checkout@v2