diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index 7c6e720..115e6c3 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -5,6 +5,10 @@ on: branches: - main +concurrency: + group: release-${{ github.ref }} + cancel-in-progress: false + permissions: contents: write diff --git a/template/{% if enable_github_action %}.github{% endif%}/workflows/release.yaml.jinja b/template/{% if enable_github_action %}.github{% endif%}/workflows/release.yaml.jinja index 57bb5f1..33f2fdb 100644 --- a/template/{% if enable_github_action %}.github{% endif%}/workflows/release.yaml.jinja +++ b/template/{% if enable_github_action %}.github{% endif%}/workflows/release.yaml.jinja @@ -5,6 +5,10 @@ on: branches: - main +concurrency: + group: release-{% raw %}${{ github.ref }}{% endraw %} + cancel-in-progress: false + {# default: least privileged permissions across all jobs #} permissions: contents: read