Skip to content

Commit

Permalink
reintroduce wp version check in release workflow
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
circlecube authored Nov 7, 2023
1 parent 8f6fe1c commit 650619a
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions .github/workflows/upload-asset-on-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 650619a

Please sign in to comment.