Skip to content

Commit

Permalink
Update shell for each run
Browse files Browse the repository at this point in the history
  • Loading branch information
sclark3-godaddy committed Dec 6, 2023
1 parent 6e9bdb9 commit 0582ab2
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@ runs:
id: npm-cache-dir
shell: bash
run: echo "dir=$(npm config get cache)" >> ${GITHUB_OUTPUT}
shell: bash
- name: Setup NPM cache
uses: actions/cache@v3
id: npm-cache # use this to check for `cache-hit` ==> if: steps.npm-cache.outputs.cache-hit != 'true'
Expand All @@ -64,15 +65,20 @@ runs:
${{ runner.os }}-node-
- name: Install NPM dependencies
run: npm install
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 }}"
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 }}"
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 }}"
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 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 }}"
shell: bash

0 comments on commit 0582ab2

Please sign in to comment.