Skip to content

eBPF-based security platform

ci: stop a push to main from cancelling a Pages deployment

Martynas Pumputisd1b91e5f8bc5
diff --git a/.github/workflows/docs.yml b/.github/workflows/docs.yml
index 1a47698b..7b59c7c4 100644
--- a/.github/workflows/docs.yml
+++ b/.github/workflows/docs.yml
@@ -12,14 +12,13 @@ on:
permissions:
contents: read
-# A newer run for the same branch or pull request supersedes this one.
-concurrency:
- group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
- cancel-in-progress: true
-
jobs:
docs:
runs-on: ubuntu-latest
+ # A newer run for the same branch or pull request supersedes this one.
+ concurrency:
+ group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
+ cancel-in-progress: true
steps:
- name: Check out repository
@@ -59,6 +58,11 @@ jobs:
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
+ # A deployment cancelled midway publishes nothing, so a push to main
+ # waits for the one in flight and only the newest waiting one runs.
+ concurrency:
+ group: ${{ github.workflow }}-pages
+ cancel-in-progress: false
steps:
- name: Deploy to GitHub Pages