From 0036ceef4577d6ef9376921503f2998dcb64f773 Mon Sep 17 00:00:00 2001 From: anomiex Date: Thu, 13 Jun 2024 20:14:17 +0000 Subject: [PATCH] ci: Use `beta-plugin-slug` in autorelease action (#37863) If no `.extra.autorelease.slug` and no `.extra.wp-plugin-slug` exist, but `.extra.beta-plugin-slug` does, use that. Committed via a GitHub action: https://github.com/Automattic/jetpack/actions/runs/9505993312 Upstream-Ref: Automattic/jetpack@4cfe43bfcfb3228c4bd97c84c6c613362e68e4d7 --- .github/files/autorelease.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/files/autorelease.sh b/.github/files/autorelease.sh index 276f6572..cf26c71e 100755 --- a/.github/files/autorelease.sh +++ b/.github/files/autorelease.sh @@ -28,7 +28,7 @@ if [[ ! -f composer.json ]]; then exit 1 fi -SLUG="$(jq -r '.extra.autorelease.slug? // .extra["wp-plugin-slug"] // ( .name | sub( "^.*/"; "" ) )' composer.json)" +SLUG="$(jq -r '.extra.autorelease.slug? // .extra["wp-plugin-slug"] // .extra["beta-plugin-slug"] // ( .name | sub( "^.*/"; "" ) )' composer.json)" if [[ -z "$SLUG" ]]; then echo '::error::Failed to get slug from composer.json.' exit 1