Skip to content

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

Fix rollback tag check (#1563)

sarayourfriendfca75abb6fd1
diff --git a/.github/workflows/rollback.yml b/.github/workflows/rollback.yml
index f06095e7c..d55b3f511 100644
--- a/.github/workflows/rollback.yml
+++ b/.github/workflows/rollback.yml
@@ -28,7 +28,7 @@ jobs:
org: 'WordPress',
})
- const exists = versions.some(v => v.name === "${{ inputs.tag }}")
+ const exists = versions.some(v => v.metadata.container.tags.includes("${{ inputs.tag }}"))
if (!exists) {
throw new Error("`${{ inputs.tag }}` does not appear to be a valid tag for the ghcr.io/wordpress/openverse-frontend image.")