Skip to content

Commit

Permalink
validate that tested version matches the wp-env version
Browse files Browse the repository at this point in the history
  • Loading branch information
circlecube committed Oct 20, 2023
1 parent 70bf425 commit d3a4878
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions .github/workflows/upload-asset-on-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,15 @@ jobs:
[[ "$taggedVersion" == "$pluginConstantVersion" ]] || exit 1
[[ "$taggedVersion" == "$pluginPackageVersion" ]] || exit 1
- name: Validate WP Versions
if: ${{ (github.repository == 'bluehost/bluehost-wordpress-plugin') && (github.event.release.prerelease == false) }}
run: |
pluginHeaderTestedVersion=`grep "Tested up to:" bluehost-wordpress-plugin.php | grep -Eo "[0-9\.]*"`
wpEnvVersion=`grep "WordPress/WordPress#tags/" .wp-env.json | grep -Eo "[0-9\.]*"`
echo "Plugin header tested version: $pluginHeaderTestedVersion"
echo "wp-env version: $wpEnvVersion"
[[ "$wpEnvVersion" == "$pluginHeaderTestedVersion" ]] || exit 1
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
Expand Down

0 comments on commit d3a4878

Please sign in to comment.