ci plugin install add support for installing a specific version
Some checks failed
PHP Code Checker / PHP Code Checker (pull_request) Successful in 46s
PHPUnit / PHPUnit – PHP 7.4 (pull_request) Failing after 3m16s
PHPUnit / PHPUnit – PHP 8.0 (pull_request) Failing after 3m28s
PHPUnit / PHPUnit – PHP 8.1 (pull_request) Failing after 3m20s
PHPUnit / PHPUnit – PHP 8.3 (pull_request) Has been cancelled
PHPUnit / PHPUnit – PHP 8.2 (pull_request) Has been cancelled

This commit is contained in:
André Menrath 2024-11-16 18:40:33 +01:00
parent 1cff2aac65
commit d3bb53c1bc

View file

@ -208,9 +208,15 @@ install_wp_plugin() {
fi fi
# Get the latest tag. # Get the latest tag.
LATEST_TAG=$(svn log https://plugins.svn.wordpress.org/$PLUGIN_NAME/tags --limit 1 | awk 'NR == 4 { print $4 }') if [ -z "$2" ]
if [ -n "$LATEST_TAG" ]; then LATEST_TAG=$(svn log https://plugins.svn.wordpress.org/$PLUGIN_NAME/tags --limit 1 | awk 'NR == 4 { print $4 }')
PLUGIN_FILE="$PLUGIN_NAME.$LATEST_TAG.zip" PLUGIN_VERSION=$LATEST_TAG
else
PLUGIN_VERSION=$2
fi
if [ -n "$PLUGIN_VERSION" ]; then
PLUGIN_FILE="$PLUGIN_NAME.$PLUGIN_VERSION.zip"
else else
PLUGIN_FILE="$PLUGIN_NAME.zip" PLUGIN_FILE="$PLUGIN_NAME.zip"
fi fi
@ -248,7 +254,7 @@ install_wp_plugins() {
# Install the one and only ActivityPub plugin (greetings @pfefferle). # Install the one and only ActivityPub plugin (greetings @pfefferle).
install_wp_plugin activitypub install_wp_plugin activitypub
# Install (not-activate) all supported event plugins. # Install (not-activate) all supported event plugins.
install_wp_plugin the-events-calendar install_wp_plugin the-events-calendar "6.8.1"
install_wp_plugin very-simple-event-list install_wp_plugin very-simple-event-list
install_wp_plugin gatherpress install_wp_plugin gatherpress
install_wp_plugin events-manager install_wp_plugin events-manager