Skip to content

Commit

Permalink
Update scripts used for wporg-replace-helper
Browse files Browse the repository at this point in the history
  • Loading branch information
sclark3-godaddy committed Dec 6, 2023
1 parent 017e970 commit e159fde
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 4 deletions.
8 changes: 4 additions & 4 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -73,17 +73,17 @@ runs:
shell: bash
- name: Update plugin version
if: "${{ inputs.plugin_version != '' }}"
run: npm explore wporg-replace-helper -- npm run update-plugin-version --plugin_version="${{ inputs.plugin_version }}" --plugin_version_constant_name="${{ inputs.plugin_version_constant_name }}" --plugin_file="${{ inputs.plugin_file }}" --plugin_path="${{ inputs.plugin_path }}"
run: npm run update-plugin-version --plugin_version="${{ inputs.plugin_version }}" --plugin_version_constant_name="${{ inputs.plugin_version_constant_name }}" --plugin_file="${{ inputs.plugin_file }}" --plugin_path="${{ inputs.plugin_path }}"
shell: bash
- name: Update tested WP version
if: "${{ inputs.tested_wp_version != '' }}"
run: npm explore wporg-replace-helper -- npm run update-tested-wp-version --tested_wp_version="${{ inputs.tested_wp_version }}" --tested_wp_version_constant_name="${{ inputs.tested_wp_version_constant_name }}" --plugin_file="${{ inputs.plugin_file }}" --plugin_path="${{ inputs.plugin_path }}"
run: npm run update-tested-wp-version --tested_wp_version="${{ inputs.tested_wp_version }}" --tested_wp_version_constant_name="${{ inputs.tested_wp_version_constant_name }}" --plugin_file="${{ inputs.plugin_file }}" --plugin_path="${{ inputs.plugin_path }}"
shell: bash
- name: Update minimum WP version
if: "${{ inputs.minimum_wp_version != '' }}"
run: npm explore wporg-replace-helper -- npm run update-minimum-wp-version --minimum_wp_version="${{ inputs.minimum_wp_version }}" --minimum_wp_version_constant_name="${{ inputs.minimum_wp_version_constant_name }}" --plugin_file="${{ inputs.plugin_file }}" --plugin_path="${{ inputs.plugin_path }}"
run: npm run update-minimum-wp-version --minimum_wp_version="${{ inputs.minimum_wp_version }}" --minimum_wp_version_constant_name="${{ inputs.minimum_wp_version_constant_name }}" --plugin_file="${{ inputs.plugin_file }}" --plugin_path="${{ inputs.plugin_path }}"
shell: bash
- name: Update minimum PHP version
if: "${{ inputs.minimum_php_version != '' }}"
run: npm explore wporg-replace-helper -- 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 }}"
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 }}"
shell: bash
6 changes: 6 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,12 @@
"name": "wporg-replace",
"version": "1.0.0",
"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-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"
},
"dependencies": {
"wporg-replace-helper": "github:sc0ttkclark/wporg-replace-helper"
}
Expand Down

0 comments on commit e159fde

Please sign in to comment.