Skip to content

Commit 913377f

Browse files
committed
docs: Improve usage of concurrency
1 parent cdd482a commit 913377f

File tree

1 file changed

+28
-42
lines changed

1 file changed

+28
-42
lines changed

README.md

Lines changed: 28 additions & 42 deletions
Original file line numberDiff line numberDiff line change
@@ -141,12 +141,11 @@ on:
141141
- main # Set a branch name to trigger deployment
142142
pull_request:
143143
144-
concurrency:
145-
group: ${{ github.workflow }}-${{ github.ref }}
146-
147144
jobs:
148145
deploy:
149146
runs-on: ubuntu-20.04
147+
concurrency:
148+
group: ${{ github.workflow }}-${{ github.ref }}
150149
steps:
151150
- uses: actions/checkout@v2
152151
with:
@@ -478,12 +477,11 @@ on:
478477
tags:
479478
- 'v*.*.*'
480479
481-
concurrency:
482-
group: ${{ github.workflow }}-${{ github.ref }}
483-
484480
jobs:
485481
deploy:
486482
runs-on: ubuntu-20.04
483+
concurrency:
484+
group: ${{ github.workflow }}-${{ github.ref }}
487485
steps:
488486
- uses: actions/checkout@v2
489487
@@ -608,12 +606,11 @@ on:
608606
- cron: "22 22 * * *"
609607
workflow_dispatch:
610608
611-
concurrency:
612-
group: ${{ github.workflow }}-${{ github.ref }}
613-
614609
jobs:
615610
deploy:
616611
runs-on: ubuntu-20.04
612+
concurrency:
613+
group: ${{ github.workflow }}-${{ github.ref }}
617614
steps:
618615
...
619616
```
@@ -649,12 +646,11 @@ on:
649646
- main
650647
pull_request:
651648
652-
concurrency:
653-
group: ${{ github.workflow }}-${{ github.ref }}
654-
655649
jobs:
656650
deploy:
657651
runs-on: ubuntu-20.04
652+
concurrency:
653+
group: ${{ github.workflow }}-${{ github.ref }}
658654
steps:
659655
- uses: actions/checkout@v2
660656
@@ -698,12 +694,11 @@ on:
698694
- main
699695
pull_request:
700696
701-
concurrency:
702-
group: ${{ github.workflow }}-${{ github.ref }}
703-
704697
jobs:
705698
deploy:
706699
runs-on: ubuntu-20.04
700+
concurrency:
701+
group: ${{ github.workflow }}-${{ github.ref }}
707702
steps:
708703
- uses: actions/checkout@v2
709704
@@ -751,12 +746,11 @@ on:
751746
- main
752747
pull_request:
753748
754-
concurrency:
755-
group: ${{ github.workflow }}-${{ github.ref }}
756-
757749
jobs:
758750
deploy:
759751
runs-on: ubuntu-20.04
752+
concurrency:
753+
group: ${{ github.workflow }}-${{ github.ref }}
760754
steps:
761755
- uses: actions/checkout@v2
762756
@@ -807,12 +801,11 @@ on:
807801
- main
808802
pull_request:
809803
810-
concurrency:
811-
group: ${{ github.workflow }}-${{ github.ref }}
812-
813804
jobs:
814805
deploy:
815806
runs-on: ubuntu-20.04
807+
concurrency:
808+
group: ${{ github.workflow }}-${{ github.ref }}
816809
steps:
817810
- uses: actions/checkout@v2
818811
@@ -861,12 +854,11 @@ on:
861854
- 'website/**'
862855
pull_request:
863856
864-
concurrency:
865-
group: ${{ github.workflow }}-${{ github.ref }}
866-
867857
jobs:
868858
deploy:
869859
runs-on: ubuntu-20.04
860+
concurrency:
861+
group: ${{ github.workflow }}-${{ github.ref }}
870862
defaults:
871863
run:
872864
working-directory: website
@@ -920,12 +912,11 @@ on:
920912
- main
921913
pull_request:
922914
923-
concurrency:
924-
group: ${{ github.workflow }}-${{ github.ref }}
925-
926915
jobs:
927916
deploy:
928917
runs-on: ubuntu-20.04
918+
concurrency:
919+
group: ${{ github.workflow }}-${{ github.ref }}
929920
steps:
930921
- uses: actions/checkout@v2
931922
@@ -981,12 +972,11 @@ on:
981972
- main
982973
pull_request:
983974
984-
concurrency:
985-
group: ${{ github.workflow }}-${{ github.ref }}
986-
987975
jobs:
988976
deploy:
989977
runs-on: ubuntu-20.04
978+
concurrency:
979+
group: ${{ github.workflow }}-${{ github.ref }}
990980
steps:
991981
- uses: actions/checkout@v2
992982
@@ -1021,12 +1011,11 @@ on:
10211011
- main
10221012
pull_request:
10231013
1024-
concurrency:
1025-
group: ${{ github.workflow }}-${{ github.ref }}
1026-
10271014
jobs:
10281015
deploy:
10291016
runs-on: ubuntu-20.04
1017+
concurrency:
1018+
group: ${{ github.workflow }}-${{ github.ref }}
10301019
steps:
10311020
- uses: actions/checkout@v2
10321021
@@ -1066,12 +1055,11 @@ on:
10661055
- main
10671056
pull_request:
10681057
1069-
concurrency:
1070-
group: ${{ github.workflow }}-${{ github.ref }}
1071-
10721058
jobs:
10731059
deploy:
10741060
runs-on: ubuntu-20.04
1061+
concurrency:
1062+
group: ${{ github.workflow }}-${{ github.ref }}
10751063
steps:
10761064
- uses: actions/checkout@v2
10771065
@@ -1117,12 +1105,11 @@ on:
11171105
schedule:
11181106
- cron: '24 */24 * * *' # Once a day
11191107

1120-
concurrency:
1121-
group: ${{ github.workflow }}-${{ github.ref }}
1122-
11231108
jobs:
11241109
deploy:
11251110
runs-on: ubuntu-20.04
1111+
concurrency:
1112+
group: ${{ github.workflow }}-${{ github.ref }}
11261113
steps:
11271114
- uses: actions/checkout@v2
11281115
- name: Deploy to GitHub Pages
@@ -1150,12 +1137,11 @@ on:
11501137
- main
11511138
pull_request:
11521139

1153-
concurrency:
1154-
group: ${{ github.workflow }}-${{ github.ref }}
1155-
11561140
jobs:
11571141
deploy:
11581142
runs-on: macos-latest
1143+
concurrency:
1144+
group: ${{ github.workflow }}-${{ github.ref }}
11591145
steps:
11601146
- uses: actions/checkout@v2
11611147

0 commit comments

Comments
 (0)