Skip to content

Commit

Permalink
Add support for replacing a minimum MySQL version
Browse files Browse the repository at this point in the history
  • Loading branch information
sclark3-godaddy committed Dec 9, 2023
1 parent cfce45d commit ab2e720
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 4 deletions.
13 changes: 13 additions & 0 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,12 @@ inputs:
minimum_php_version_constant_name:
description: 'Minimum PHP version constant name (if used)'
required: false
minimum_mysql_version:
description: 'Minimum MySQL version'
required: false
minimum_mysql_version_constant_name:
description: 'Minimum MySQL version constant name (if used)'
required: false
plugin_file:
description: 'Plugin file'
required: false
Expand All @@ -50,6 +56,8 @@ runs:
echo minimum_wp_version_constant_name: ${{ inputs.minimum_wp_version_constant_name }}
echo minimum_php_version: ${{ inputs.minimum_php_version }}
echo minimum_php_version_constant_name: ${{ inputs.minimum_php_version_constant_name }}
echo minimum_mysql_version: ${{ inputs.minimum_mysql_version }}
echo minimum_mysql_version_constant_name: ${{ inputs.minimum_mysql_version_constant_name }}
echo plugin_file: ${{ inputs.plugin_file }}
echo plugin_path: ${{ inputs.plugin_path }}
shell: bash
Expand Down Expand Up @@ -93,4 +101,9 @@ runs:
if: "${{ inputs.minimum_php_version != '' }}"
run: npm run update-minimum-php-version --minimum_php_version="${{ inputs.minimum_php_version }}" --minimum_php_version_constant_name="${{ inputs.minimum_php_version_constant_name }}" --plugin_file="${{ inputs.plugin_file }}" --plugin_path="${{ inputs.plugin_path }}"
working-directory: ${{ github.action_path }}
shell: bash
- name: Update minimum MySQL version
if: "${{ inputs.minimum_mysql_version != '' }}"
run: npm run update-minimum-mysql-version --minimum_mysql_version="${{ inputs.minimum_mysql_version }}" --minimum_mysql_version_constant_name="${{ inputs.minimum_mysql_version_constant_name }}" --plugin_file="${{ inputs.plugin_file }}" --plugin_path="${{ inputs.plugin_path }}"
working-directory: ${{ github.action_path }}
shell: bash
9 changes: 5 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,14 +1,15 @@
{
"name": "wporg-replace",
"version": "1.0.0",
"version": "1.0.7",
"description": "A helpful GitHub action that will handle replacing version numbers across plugin files.",
"scripts": {
"update-plugin-version": "cd node_modules/wporg-replace-helper && npm run update-plugin-version",
"update-minimum-php-version": "cd node_modules/wporg-replace-helper && npm run update-minimum-php-version",
"update-tested-wp-version": "cd node_modules/wporg-replace-helper && npm run update-tested-wp-version",
"update-minimum-wp-version": "cd node_modules/wporg-replace-helper && npm run update-minimum-wp-version",
"update-tested-wp-version": "cd node_modules/wporg-replace-helper && npm run update-tested-wp-version"
"update-minimum-php-version": "cd node_modules/wporg-replace-helper && npm run update-minimum-php-version",
"update-minimum-mysql-version": "cd node_modules/wporg-replace-helper && npm run update-minimum-mysql-version"
},
"dependencies": {
"wporg-replace-helper": "github:sc0ttkclark/wporg-replace-helper"
"wporg-replace-helper": "^1.0.1"
}
}

0 comments on commit ab2e720

Please sign in to comment.