Skip to content

Commit 5c752b6

Browse files
committed
update concurrency
1 parent 24c4de3 commit 5c752b6

File tree

2 files changed

+15
-5
lines changed

2 files changed

+15
-5
lines changed

.github/workflows/dev.yaml

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,23 @@
11
on:
2+
workflow_dispatch: # To allow for manuel trigger of this workflow. Cf
3+
# https://docs.github.com/en/actions/reference/workflows-and-actions/events-that-trigger-workflows#workflow_dispatch
4+
push:
5+
branches-ignore: # Triggers for push to all branches but main
6+
- main
27
pull_request:
38
types:
49
- opened
510
- reopened
611
- synchronize
712
- closed # Including closed to remove preview when PR is closed.
813
branches:
9-
- main
14+
- main # PR to main only
1015

1116
env:
1217
PREVIEW_BRANCH: gh-pages
1318

1419
concurrency:
15-
group: preview-${{ github.ref }}
20+
group: preview-${{ github.ref }} # preview followed by the reference of the branch or tag that triggered the workflow
1621
cancel-in-progress: true
1722

1823
jobs:

.github/workflows/prod.yaml

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,21 @@
11
on:
2-
workflow_dispatch:
2+
workflow_dispatch: # To allow for manuel trigger of this workflow. Cf
3+
# https://docs.github.com/en/actions/reference/workflows-and-actions/events-that-trigger-workflows#workflow_dispatch
34
push:
45
branches: main
56

67
name: Quarto Publish
78

9+
concurrency:
10+
group: ci-${{ github.ref }} # preview followed by the reference of the branch or tag that triggered the workflow
11+
cancel-in-progress: true
12+
813
jobs:
914
build-deploy:
1015
runs-on: ubuntu-latest
1116
steps:
1217
- name: Check out repository
13-
uses: actions/checkout@v3
18+
uses: actions/checkout@v3
1419

1520
- uses: actions/setup-python@v4
1621
with:
@@ -20,7 +25,7 @@ jobs:
2025
with:
2126
version: 1.7.31
2227

23-
- name: Render and Publish
28+
- name: Render and Publish
2429
uses: quarto-dev/quarto-actions/publish@v2
2530
with:
2631
target: netlify

0 commit comments

Comments
 (0)