We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8508d22 commit 34a2528Copy full SHA for 34a2528
bin/validate-plugin-version.sh
@@ -3,7 +3,16 @@ set -euo pipefail
3
IFS=$'\n\t'
4
5
main(){
6
-
+ # If $PLUGIN_PATH is defined, echo it.
7
+ if [[ -n "${PLUGIN_PATH:-}" ]]; then
8
+ echo "Plugin path: $PLUGIN_PATH"
9
+ else
10
+ local PLUGIN_PATH
11
+ # By default, the plugin path is the root directory of the project that has this action.
12
+ PLUGIN_PATH=$(pwd)
13
14
+ fi
15
+
16
local CURRENT_WP_VERSION
17
CURRENT_WP_VERSION=$(curl -s https://api.wordpress.org/core/version-check/1.7/ | jq -r '.offers[0].current')
18
echo "Current WordPress Version: ${CURRENT_WP_VERSION}"
0 commit comments