Skip to content

Commit fe826b7

Browse files
author
Vivek Vishal
authored
ensure latest deployment runs, cancelling currently running flow, if there's one
Signed-off-by: Vivek Vishal <vishalvivek488@gmail.com>
1 parent 3421550 commit fe826b7

1 file changed

Lines changed: 2 additions & 4 deletions

File tree

.github/workflows/hugo.yaml

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,11 +18,9 @@ permissions:
1818
pages: write
1919
id-token: write
2020

21-
# Allow only one concurrent deployment, skipping runs queued between the run in-progress and latest queued.
22-
# However, do NOT cancel in-progress runs as we want to allow these production deployments to complete.
2321
concurrency:
24-
group: "pages"
25-
cancel-in-progress: false
22+
group: "pages-deployment"
23+
cancel-in-progress: true # Only latest deployment runs
2624

2725
# Default to bash
2826
defaults:

0 commit comments

Comments
 (0)