Docs at https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#concurrency
# 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
- "*"
pull_request:
+concurrency:
+ group: ${{ github.workflow }}-${{ github.ref_name }}
+ cancel-in-progress: true
+
jobs:
lint:
runs-on: ubuntu-20.04
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: # {{{