From: Daniele Varrazzo Date: Fri, 11 Feb 2022 00:41:09 +0000 (+0100) Subject: Set workflows to cancel jobs on the same branch X-Git-Tag: pool-3.1.1~8 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d43d155eab6293985e446f4fc4a8c0f275d60d86;p=thirdparty%2Fpsycopg.git Set workflows to cancel jobs on the same branch Docs at https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#concurrency --- diff --git a/.github/workflows/docs.yml b/.github/workflows/docs.yml index 72f7a068c..1dd1e94c9 100644 --- a/.github/workflows/docs.yml +++ b/.github/workflows/docs.yml @@ -6,6 +6,10 @@ on: # This should match the DOC3_BRANCH value in the psycopg-website Makefile - master +concurrency: + group: ${{ github.workflow }}-${{ github.ref_name }} + cancel-in-progress: true + jobs: docs: runs-on: ubuntu-latest diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index b9a50aaef..adc29cf4d 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -8,6 +8,10 @@ on: - "*" pull_request: +concurrency: + group: ${{ github.workflow }}-${{ github.ref_name }} + cancel-in-progress: true + jobs: lint: runs-on: ubuntu-20.04 diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 3e6ec0565..c01b99adf 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -10,6 +10,11 @@ on: schedule: - cron: '48 6 * * *' +concurrency: + # Cancel older requests of the same workflow in the same branch. + group: ${{ github.workflow }}-${{ github.ref_name }} + cancel-in-progress: true + jobs: linux: # {{{