Skip to content

Openverse is a search engine for openly-licensed media. This monorepo includes all application code.

Prevent concurrency between release app and draft releases (#4506)

sarayourfriend0756487b5031
diff --git a/.github/workflows/draft_releases.yml b/.github/workflows/draft_releases.yml
index 1d7bf5a65..9a82fe0b5 100644
--- a/.github/workflows/draft_releases.yml
+++ b/.github/workflows/draft_releases.yml
@@ -5,10 +5,11 @@ on:
branches:
- main
+# Prevent concurrency with other workflows in the "Release workflow group"
+# See https://github.com/WordPress/openverse/issues/4505 for context
concurrency:
- group: ${{ github.workflow }}-${{ github.ref }}
- # Freely interrupt release drafting workflows, they do not depend on each other and always generate the full release based on the previous one
- cancel-in-progress: true
+ group: operates_on_github_releases
+ cancel-in-progress: false
jobs:
draft-release:
diff --git a/.github/workflows/release-app.yml b/.github/workflows/release-app.yml
index 9a1db6bda..b6fcd27e6 100644
--- a/.github/workflows/release-app.yml
+++ b/.github/workflows/release-app.yml
@@ -4,16 +4,11 @@ on:
release:
types: [released]
-# The app-name expression is duplicated between here and `env` below because neither context is able to reference the other
-# but both need it
-concurrency: >
- ${{ github.workflow }}-
- ${{
- startsWith(github.ref_name, 'api-') && 'api'
- || startsWith(github.ref_name, 'ingestion_server-') && 'ingestion_server'
- || startsWith(github.ref_name, 'catalog-') && 'catalog'
- || startsWith(github.ref_name, 'frontend-') && 'frontend'
- }}
+# Prevent concurrency with other workflows in the "Release workflow group"
+# See https://github.com/WordPress/openverse/issues/4505 for context
+concurrency:
+ group: operates_on_github_releases
+ cancel-in-progress: false
jobs:
release-app: