Skip to content

Commit

Permalink
ci: Use beta-plugin-slug in autorelease action (#37863)
Browse files Browse the repository at this point in the history
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@4cfe43b
  • Loading branch information
anomiex authored and matticbot committed Jun 13, 2024
1 parent 4781124 commit 0036cee
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/files/autorelease.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 0036cee

Please sign in to comment.