From 650619a3f7291e981c815a7833ad60e793a9d852 Mon Sep 17 00:00:00 2001 From: Evan Mullins Date: Tue, 7 Nov 2023 13:20:37 -0500 Subject: [PATCH] reintroduce wp version check in release workflow this was paused temporarily so we could preemptively release a plugin version that denotes it has been tested up wp 6.4 before it has been officially released. --- .github/workflows/upload-asset-on-release.yml | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/.github/workflows/upload-asset-on-release.yml b/.github/workflows/upload-asset-on-release.yml index 796e9bf5..a09878bc 100644 --- a/.github/workflows/upload-asset-on-release.yml +++ b/.github/workflows/upload-asset-on-release.yml @@ -101,14 +101,14 @@ jobs: - name: NPM Install run: npm install --legacy-peer-deps - # - name: Validate WP Versions - # if: ${{ (github.repository == 'newfold-labs/wp-plugin-hostgator') && (github.event.release.prerelease == false) }} - # run: | - # wpEnvVersion=`grep "WordPress/WordPress#tags/" .wp-env.json | grep -Eo "[0-9\.]*"` - # pluginHeaderTestedVersion=`grep "Tested up to:" wp-plugin-hostgator.php | grep -Eo "[0-9\.]*"` - # echo "wp-env version: $wpEnvVersion" - # echo "Plugin header tested version: $pluginHeaderTestedVersion" - # [[ "$wpEnvVersion" == "$pluginHeaderTestedVersion" ]] || exit 1 + - name: Validate WP Versions + if: ${{ (github.repository == 'newfold-labs/wp-plugin-hostgator') && (github.event.release.prerelease == false) }} + run: | + wpEnvVersion=`grep "WordPress/WordPress#tags/" .wp-env.json | grep -Eo "[0-9\.]*"` + pluginHeaderTestedVersion=`grep "Tested up to:" wp-plugin-hostgator.php | grep -Eo "[0-9\.]*"` + echo "wp-env version: $wpEnvVersion" + echo "Plugin header tested version: $pluginHeaderTestedVersion" + [[ "$wpEnvVersion" == "$pluginHeaderTestedVersion" ]] || exit 1 - name: Build JavaScript run: npm run build